Skip to content

Commit a5fbdf1

Browse files
authored
chore: Update depositRoutes script (#1008)
- Add World Chain to v4 SpokePools (in anticipation of upgrade). - Fix disabling token routes (must be lower case).
1 parent 99db117 commit a5fbdf1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tasks/enableL1TokenAcrossEcosystem.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const NO_SYMBOL = "----";
99
const NO_ADDRESS = "------------------------------------------";
1010

1111
const IGNORED_CHAINS = [CHAIN_IDs.BOBA, CHAIN_IDs.SOLANA];
12-
const V4_CHAINS = [CHAIN_IDs.BSC, CHAIN_IDs.LISK, CHAIN_IDs.LINEA];
12+
const V4_CHAINS = [CHAIN_IDs.BSC, CHAIN_IDs.LISK, CHAIN_IDs.LINEA, CHAIN_IDs.WORLD_CHAIN];
1313

1414
// Supported mainnet chain IDs.
1515
const enabledChainIds = (hubChainId: number) => {
@@ -28,7 +28,7 @@ const getChainsFromList = (taskArgInput: string): number[] =>
2828

2929
task("enableToken", "Enable a provided token across the entire ecosystem of supported chains")
3030
.addFlag("execute", "Provide this flag if you would like to actually execute the transaction from the EOA")
31-
.addFlag("disableRoutes", "Set to disable deposit routes for the specified chains")
31+
.addFlag("disable", "Set to disable deposit routes for the specified chains")
3232
.addParam("token", "Symbol of token to enable")
3333
.addOptionalParam("chains", "Comma-delimited list of chains to enable the token on. Defaults to all supported chains")
3434
.addOptionalParam("burn", "Amount of LP token to burn when enabling a new token", 1, types.int)
@@ -40,7 +40,7 @@ task("enableToken", "Enable a provided token across the entire ecosystem of supp
4040
.setAction(async function (taskArguments, hre_) {
4141
const hre = hre_ as any;
4242
const { burn, chains, execute, token: symbol } = taskArguments;
43-
const enableRoute = !taskArguments.disableRoutes;
43+
const enableRoute = !taskArguments.disable;
4444

4545
const hubChainId = parseInt(await hre.getChainId());
4646
if (hubChainId === 31337) {

0 commit comments

Comments
 (0)