Skip to content

Commit

Permalink
Modify implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
gvladika committed Apr 29, 2024
1 parent 1827189 commit 37c8538
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions test-e2e/tokenBridgeDeploymentTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,9 @@ describe('tokenBridge', () => {
await checkL2Ownership(l2Deployment, usingFeeToken)
await checkLogicContracts(usingFeeToken, l2Deployment)

// This should always be the last check, because WETH gateway registration is a
// This should always be the last check, because WETH gateway registration is a
// separate step that should be done after token bridge is atomically deployed
if (!usingFeeToken) {
if (!usingFeeToken && !isLocalDeployment(l1Provider, l2Provider)) {
await checkWethGatewayIsRegistered(
L1WethGateway__factory.connect(l1Deployment.wethGateway, l1Provider),
L1GatewayRouter__factory.connect(l1Deployment.router, l1Provider),
Expand Down Expand Up @@ -835,3 +835,13 @@ interface L2DeploymentAddresses {
upgradeExecutor: string
multicall: string
}

function isLocalDeployment(
l1Provider: JsonRpcProvider,
l2Provider: JsonRpcProvider
) {
return (
l1Provider.network.chainId === 412346 ||
l2Provider.network.chainId === 333333
)
}

0 comments on commit 37c8538

Please sign in to comment.