@@ -67,10 +67,7 @@ async function getPreUpgradeState(l1Rpc: JsonRpcProvider, config: Config) {
6767 l1Rpc
6868 )
6969
70- const bridge = IERC20Bridge__factory . connect (
71- config . contracts . bridge ,
72- l1Rpc
73- )
70+ const bridge = IERC20Bridge__factory . connect ( config . contracts . bridge , l1Rpc )
7471
7572 const stakerCount = await oldRollupContract . stakerCount ( )
7673
@@ -85,13 +82,15 @@ async function getPreUpgradeState(l1Rpc: JsonRpcProvider, config: Config) {
8582
8683 const wasmModuleRoot = await oldRollupContract . wasmModuleRoot ( )
8784
88- const feeToken = await seqInbox . isUsingFeeToken ( ) ? await bridge . nativeToken ( ) : null
85+ const feeToken = ( await seqInbox . isUsingFeeToken ( ) )
86+ ? await bridge . nativeToken ( )
87+ : null
8988
9089 return {
9190 stakers,
9291 wasmModuleRoot,
9392 ...boxes ,
94- feeToken
93+ feeToken,
9594 }
9695}
9796
@@ -138,7 +137,10 @@ async function perform(
138137 boldActionPerformData ,
139138 ] )
140139
141- const signerCanExecute = await upExec . hasRole ( '0xd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e63' , await timelockSigner . getAddress ( ) )
140+ const signerCanExecute = await upExec . hasRole (
141+ '0xd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e63' ,
142+ await timelockSigner . getAddress ( )
143+ )
142144
143145 console . log ( 'upgrade executor:' , config . contracts . upgradeExecutor )
144146 console . log ( 'execute(...) call to upgrade executor:' , performCallData )
@@ -280,7 +282,8 @@ async function checkSequencerInbox(
280282
281283 // make sure fee token-ness is correct
282284 if (
283- await seqInboxContract . isUsingFeeToken ( ) !== ( preUpgradeState . feeToken !== null )
285+ ( await seqInboxContract . isUsingFeeToken ( ) ) !==
286+ ( preUpgradeState . feeToken !== null )
284287 ) {
285288 throw new Error ( 'SequencerInbox isUsingFeeToken does not match' )
286289 }
@@ -327,7 +330,10 @@ async function checkInbox(params: VerificationParams) {
327330 config . contracts . inbox ,
328331 l1Rpc
329332 )
330- const submissionFee = await inboxContract . calculateRetryableSubmissionFee ( 100 , 100 )
333+ const submissionFee = await inboxContract . calculateRetryableSubmissionFee (
334+ 100 ,
335+ 100
336+ )
331337 if ( preUpgradeState . feeToken && ! submissionFee . eq ( 0 ) ) {
332338 throw new Error ( 'Inbox is not an ERC20Inbox' )
333339 }
@@ -387,8 +393,7 @@ async function checkOutbox(
387393 // will revert if not an ERC20Outbox
388394 const withdrawalAmt = await erc20Outbox . l2ToL1WithdrawalAmount ( )
389395 feeTokenValid = preUpgradeState . feeToken !== null
390- }
391- catch ( e : any ) {
396+ } catch ( e : any ) {
392397 if ( e . code !== 'CALL_EXCEPTION' ) throw e
393398 feeTokenValid = preUpgradeState . feeToken === null
394399 }
@@ -429,8 +434,7 @@ async function checkBridge(
429434 if ( feeToken !== preUpgradeState . feeToken ) {
430435 feeTokenValid = false
431436 }
432- }
433- catch ( e : any ) {
437+ } catch ( e : any ) {
434438 if ( e . code !== 'CALL_EXCEPTION' ) throw e
435439 feeTokenValid = preUpgradeState . feeToken === null
436440 }
0 commit comments