Skip to content

Commit

Permalink
some unsaved data
Browse files Browse the repository at this point in the history
  • Loading branch information
todesstille committed Mar 17, 2024
1 parent 8e3d923 commit f6e070b
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions DaoPools/tests/TokenSale.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,17 @@ describe("TokenSale", () => {
let newTx = getNextTx(tx);
let newParticipationTypes = [BigInt.fromI32(3), BigInt.fromI32(4)];
let newData = [Bytes.fromI32(3), Bytes.fromI32(4)];
let modifyEvent = createTierModified(
tierId,
token,
newParticipationTypes,
newData,
contractSender,
newBlock,
newTx
);

let event1 = createTierModified(tierId, token, newParticipationTypes, newData, contractSender, newBlock, newTx);

onTierModified(event1);
onTierModified(modifyEvent);

assert.fieldEquals("TokenSaleContract", contractSender.toHexString(), "daoPool", poolAddress.toHexString());

Expand Down

0 comments on commit f6e070b

Please sign in to comment.