@@ -23,7 +23,7 @@ const getChainsFromList = (taskArgInput: string): number[] =>
23
23
?. split ( "," )
24
24
?. map ( ( chainId : string ) => Number ( chainId ) ) || [ ] ;
25
25
26
- task ( "enable-l1-token-across-ecosystem " , "Enable a provided token across the entire ecosystem of supported chains" )
26
+ task ( "enableToken " , "Enable a provided token across the entire ecosystem of supported chains" )
27
27
. addFlag ( "execute" , "Provide this flag if you would like to actually execute the transaction from the EOA" )
28
28
. addFlag ( "disableRoutes" , "Set to disable deposit routes for the specified chains" )
29
29
. addParam ( "token" , "Symbol of token to enable" )
@@ -195,7 +195,9 @@ task("enable-l1-token-across-ecosystem", "Enable a provided token across the ent
195
195
console . log (
196
196
`\t${ n } Setting rebalance route for chain ${ symbol } ${ hubChainId } -> ${ destinationToken } on ${ toId } .`
197
197
) ;
198
- callData . push ( hubPool . interface . encodeFunctionData ( "setPoolRebalanceRoute" , [ toId , l1Token , destinationToken ] ) ) ;
198
+ callData . push (
199
+ hubPool . interface . encodeFunctionData ( "setPoolRebalanceRoute" , [ toId , l1TokenAddr , destinationToken ] )
200
+ ) ;
199
201
} else {
200
202
rebalanceRoutesSkipped . push ( toId ) ;
201
203
}
@@ -210,15 +212,18 @@ task("enable-l1-token-across-ecosystem", "Enable a provided token across the ent
210
212
if ( depositRouteChains . includes ( ARBITRUM ) ) {
211
213
const arbitrumToken = tokens [ ARBITRUM ] . address ;
212
214
console . log (
213
- `\nAdding call data to whitelist L2 ${ arbitrumToken } -> L1 token ${ l1Token } on Arbitrum.` +
215
+ `\nAdding call data to whitelist L2 ${ arbitrumToken } -> L1 token ${ l1TokenAddr } on Arbitrum.` +
214
216
" This is only needed on this chain."
215
217
) ;
216
218
217
219
// Address doesn't matter, we only want the interface.
218
220
const spokePool = new ethers . Contract ( hubPoolDeployment . address , minimalSpokePoolInterface , signer ) ;
219
221
// Find the address of the Arbitrum representation of this token. Construct whitelistToken call to send to the
220
222
// Arbitrum spoke pool via the relaySpokeAdminFunction call.
221
- const whitelistTokenCallData = spokePool . interface . encodeFunctionData ( "whitelistToken" , [ arbitrumToken , l1Token ] ) ;
223
+ const whitelistTokenCallData = spokePool . interface . encodeFunctionData ( "whitelistToken" , [
224
+ arbitrumToken ,
225
+ l1TokenAddr ,
226
+ ] ) ;
222
227
callData . push (
223
228
hubPool . interface . encodeFunctionData ( "relaySpokePoolAdminFunction" , [ ARBITRUM , whitelistTokenCallData ] )
224
229
) ;
0 commit comments