Skip to content

Commit

Permalink
fix: delay test
Browse files Browse the repository at this point in the history
  • Loading branch information
juliopavila committed Aug 20, 2024
1 parent 3c53365 commit d5695ed
Showing 1 changed file with 19 additions and 17 deletions.
36 changes: 19 additions & 17 deletions test/Delay.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -385,20 +385,20 @@ describe('DelayModifier', async () => {
const { avatar, modifier } = await loadFixture(setup)
const tx = await modifier.enableModule.populateTransaction(user1.address)
await avatar.exec(await modifier.getAddress(), 0, tx.data)
const expectedQueueNonce = await modifier.queueNonce
const expectedQueueNonce = (await modifier.queueNonce()).toString()

const txHash = await modifier.getTransactionHash(
user1.address,
42,
'0x',
0
)

await expect(
modifier.execTransactionFromModule(user1.address, 42, '0x', 0)
)
.to.emit(modifier, 'TransactionAdded')
.withArgs(
expectedQueueNonce,
await modifier.getTransactionHash(user1.address, 42, '0x', 0),
user1.address,
42,
'0x',
0
)
.withArgs(expectedQueueNonce, txHash, user1.address, 42, '0x', 0)
})
})

Expand Down Expand Up @@ -480,20 +480,22 @@ describe('DelayModifier', async () => {
const { avatar, modifier } = await loadFixture(setup)
const tx = await modifier.enableModule.populateTransaction(user1.address)
await avatar.exec(await modifier.getAddress(), 0, tx.data)

const expectedQueueNonce = await modifier.queueNonce()
const transactionHash = await modifier.getTransactionHash(
user1.address,
42,
'0x',
0
)

expect(
await modifier.execTransactionFromModuleReturnData(
user1.address,
42,
'0x',
0
)
await expect(
modifier.execTransactionFromModule(user1.address, 42, '0x', 0)
)
.to.emit(modifier, 'TransactionAdded')
.withArgs(
expectedQueueNonce,
await modifier.getTransactionHash(user1.address, 42, '0x', 0),
transactionHash,
user1.address,
42,
'0x',
Expand Down

0 comments on commit d5695ed

Please sign in to comment.