Skip to content

Commit

Permalink
fix: standarderc20 test (#367)
Browse files Browse the repository at this point in the history
* fix: standarderc20 test

* chore: use latest testnode

* format: fix
  • Loading branch information
gzeoneth authored Oct 18, 2023
1 parent dc2c3a5 commit def0478
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ jobs:
uses: OffchainLabs/actions/run-nitro-test-node@main
with:
no-token-bridge: true
nitro-testnode-ref: '520f2589411d76bf2ce740c65658ee81bea433df'

- name: Copy .env
run: cp ./.env-sample ./.env
Expand Down
10 changes: 3 additions & 7 deletions tests/integration/standarderc20.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,13 +210,9 @@ describe('standard ERC20', () => {
])
)

// supply just enough gas to cover l1 costs - this also covers l2 costs since the
// that estimate returns some margin
await redeemAndTest(
waitRes.message,
0,
gasComponents.gasEstimateForL1.sub(200000)
)
// force the redeem to fail by submitted just a bit under the required gas
// so it is enough to pay for L1 + L2 intrinsic gas costs
await redeemAndTest(waitRes.message, 0, gasComponents.gasEstimate.sub(1000))
await redeemAndTest(waitRes.message, 1)
})

Expand Down

0 comments on commit def0478

Please sign in to comment.