Skip to content

Commit

Permalink
fixed the other test
Browse files Browse the repository at this point in the history
  • Loading branch information
freemanzMrojo committed Aug 26, 2024
1 parent 0cebbb9 commit a421c09
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
pull_request:
branches:
- vechain
push:
branches:
- fix/18-hh-tests

jobs:
call-workflow-hardhat-tests:
Expand Down
8 changes: 4 additions & 4 deletions test/shard2/entrypoint.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -506,10 +506,10 @@ describe('EntryPoint', function () {
await fund(op1.sender)
await fundVtho(op1.sender, entryPoint)

await entryPoint.simulateValidation(op1, { gasLimit: 1e7 }).then(async tx => tx.wait()).catch(e => e)
const block = await ethers.provider.getBlock('latest')
const hash = block.transactions[0]
await checkForBannedOps(block.hash, hash, false)
const transaction = await entryPoint.simulateValidation(op1, { gasLimit: 1e7 })
transaction.wait().catch(e => e.errorArgs)
const blockHash = transaction.blockHash ?? (await ethers.provider.getBlock('latest')).hash
await checkForBannedOps(blockHash, transaction.hash, false)
})
})

Expand Down

0 comments on commit a421c09

Please sign in to comment.