Skip to content

Commit 99ff489

Browse files
Merge branch 'master' into default-use-scw
2 parents ca0c423 + 947cb19 commit 99ff489

File tree

2 files changed

+119
-97
lines changed

2 files changed

+119
-97
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)