File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -411,8 +411,8 @@ export const createERC20Command = {
411411 . toString ( )
412412 ) ;
413413
414- const l1GatewayRouter = new ethers . Contract ( l1l2tokenbridge . l2Network . tokenBridge . l1GatewayRouter , L1GatewayRouter . abi , deployerWallet ) ;
415- await ( await token . functions . approve ( l1l2tokenbridge . l2Network . tokenBridge . l1ERC20Gateway , ethers . constants . MaxUint256 ) ) . wait ( ) ;
414+ const l1GatewayRouter = new ethers . Contract ( l1l2tokenbridge . l2Network . tokenBridge . parentGatewayRouter , L1GatewayRouter . abi , deployerWallet ) ;
415+ await ( await token . functions . approve ( l1l2tokenbridge . l2Network . tokenBridge . parentErc20Gateway , ethers . constants . MaxUint256 ) ) . wait ( ) ;
416416 const supply = await token . totalSupply ( ) ;
417417 // transfer 90% of supply to l2
418418 const transferAmount = supply . mul ( 9 ) . div ( 10 ) ;
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ BLOCKSCOUT_VERSION=offchainlabs/blockscout:v1.1.0-0e716c8
99# 1. authorizing validator signer key since validator wallet is buggy
1010# - gas estimation sent from 0x0000 lead to balance and permission error
1111DEFAULT_NITRO_CONTRACTS_VERSION=" v3.1.0"
12- DEFAULT_TOKEN_BRIDGE_VERSION=" v1.2.2 "
12+ DEFAULT_TOKEN_BRIDGE_VERSION=" v1.2.5 "
1313
1414# Set default versions if not overriden by provided env vars
1515: ${NITRO_CONTRACTS_BRANCH:= $DEFAULT_NITRO_CONTRACTS_VERSION }
@@ -645,7 +645,7 @@ if $force_init; then
645645 if $tokenbridge ; then
646646 # we deployed an L1 L2 token bridge
647647 # we need to pull out the L2 WETH address and pass it as an override to the L2 L3 token bridge deployment
648- l2Weth=` docker compose run --entrypoint sh tokenbridge -c " cat l1l2_network.json" | jq -r ' .l2Network.tokenBridge.l2Weth ' `
648+ l2Weth=` docker compose run --entrypoint sh tokenbridge -c " cat l1l2_network.json" | jq -r ' .l2Network.tokenBridge.childWeth ' `
649649 fi
650650 docker compose run -e PARENT_WETH_OVERRIDE=$l2Weth -e ROLLUP_OWNER_KEY=$l3ownerkey -e ROLLUP_ADDRESS=$rollupAddress -e PARENT_RPC=http://sequencer:8547 -e PARENT_KEY=$deployer_key -e CHILD_RPC=http://l3node:3347 -e CHILD_KEY=$deployer_key tokenbridge deploy:local:token-bridge
651651 docker compose run --entrypoint sh tokenbridge -c " cat network.json && cp network.json l2l3_network.json"
You can’t perform that action at this time.
0 commit comments