File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
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 ) ;
You can’t perform that action at this time.
0 commit comments