Skip to content

Commit dc28df9

Browse files
committed
fix token transfer script
1 parent 39869a1 commit dc28df9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/ethcommands.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)