@@ -23,7 +23,7 @@ const getChainsFromList = (taskArgInput: string): number[] =>
2323 ?. split ( "," )
2424 ?. map ( ( chainId : string ) => Number ( chainId ) ) || [ ] ;
2525
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" )
2727 . addFlag ( "execute" , "Provide this flag if you would like to actually execute the transaction from the EOA" )
2828 . addFlag ( "disableRoutes" , "Set to disable deposit routes for the specified chains" )
2929 . addParam ( "token" , "Symbol of token to enable" )
@@ -195,7 +195,9 @@ task("enable-l1-token-across-ecosystem", "Enable a provided token across the ent
195195 console . log (
196196 `\t${ n } Setting rebalance route for chain ${ symbol } ${ hubChainId } -> ${ destinationToken } on ${ toId } .`
197197 ) ;
198- callData . push ( hubPool . interface . encodeFunctionData ( "setPoolRebalanceRoute" , [ toId , l1Token , destinationToken ] ) ) ;
198+ callData . push (
199+ hubPool . interface . encodeFunctionData ( "setPoolRebalanceRoute" , [ toId , l1TokenAddr , destinationToken ] )
200+ ) ;
199201 } else {
200202 rebalanceRoutesSkipped . push ( toId ) ;
201203 }
@@ -210,15 +212,18 @@ task("enable-l1-token-across-ecosystem", "Enable a provided token across the ent
210212 if ( depositRouteChains . includes ( ARBITRUM ) ) {
211213 const arbitrumToken = tokens [ ARBITRUM ] . address ;
212214 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.` +
214216 " This is only needed on this chain."
215217 ) ;
216218
217219 // Address doesn't matter, we only want the interface.
218220 const spokePool = new ethers . Contract ( hubPoolDeployment . address , minimalSpokePoolInterface , signer ) ;
219221 // Find the address of the Arbitrum representation of this token. Construct whitelistToken call to send to the
220222 // 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+ ] ) ;
222227 callData . push (
223228 hubPool . interface . encodeFunctionData ( "relaySpokePoolAdminFunction" , [ ARBITRUM , whitelistTokenCallData ] )
224229 ) ;
0 commit comments