Skip to content

Commit

Permalink
Merge branch 'main' into omahs-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
fionnachan authored Oct 19, 2023
2 parents 21d9faa + def0478 commit 8ad9811
Show file tree
Hide file tree
Showing 5 changed files with 290 additions and 259 deletions.
4 changes: 2 additions & 2 deletions .env-sample
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ARB_URL="http://localhost:8547"
ETH_URL="http://localhost:8545"
ARB_KEY="e887f7d17d07cc7b8004053fb8826f6657084e88904bb61590e498ca04704cf2"
ETH_KEY=""
ARB_KEY="b6b15c8cb491557369f3c7d2c287b053eb229daa9c22138887752191c9520659"
ETH_KEY="b6b15c8cb491557369f3c7d2c287b053eb229daa9c22138887752191c9520659"

INFURA_KEY="2323232323232323232"
SHOULD_FORK="0"
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ jobs:
- name: Restore node_modules
uses: OffchainLabs/actions/node-modules/restore@main

- uses: OffchainLabs/actions/run-nitro-test-node@main
- name: Set up the local node
uses: OffchainLabs/actions/run-nitro-test-node@main
with:
no-token-bridge: true

Expand Down
7 changes: 6 additions & 1 deletion audit-ci.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,11 @@
// from: @arbitrum/nitro-contracts>@openzeppelin/contracts-upgradeable
// from @arbitrum/nitro-contracts>@openzeppelin/contracts
// We don't use ERC2771Context
"GHSA-g4vp-m682-qqmp"
"GHSA-g4vp-m682-qqmp",
// https://github.com/advisories/GHSA-wqq4-5wpv-mx2g
// Undici's cookie header not cleared on cross-origin redirect in fetch
// from: hardhat>undici
// hardhat is only used in dev
"GHSA-wqq4-5wpv-mx2g"
]
}
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
Loading

0 comments on commit 8ad9811

Please sign in to comment.