@@ -874,6 +874,7 @@ yargs(hideBin(process.argv))
874874 . option ( "payer" , options . payer )
875875 . option ( "skip-chain" , options . skipChain )
876876 . option ( "only-chain" , options . onlyChain )
877+ . option ( "gas-estimate-multiplier" , options . gasEstimateMultiplier )
877878 . example ( "$0 push" , "Push local configuration changes to the blockchain" )
878879 . example ( "$0 push --signer-type ledger" , "Push changes using a Ledger hardware wallet for signing" )
879880 . example ( "$0 push --skip-verify" , "Push changes without verifying contracts on EVM chains" )
@@ -885,6 +886,7 @@ yargs(hideBin(process.argv))
885886 const deps : Partial < { [ C in Chain ] : Deployment < Chain > } > = await pullDeployments ( deployments , network , verbose ) ;
886887 const signerType = argv [ "signer-type" ] as SignerType ;
887888 const payerPath = argv [ "payer" ] ;
889+ const gasEstimateMultiplier = argv [ "gas-estimate-multiplier" ] ;
888890 const skipChains = argv [ "skip-chain" ] as string [ ] || [ ] ;
889891 const onlyChains = argv [ "only-chain" ] as string [ ] || [ ] ;
890892 const shouldSkipChain = ( chain : string ) => {
@@ -1021,7 +1023,7 @@ yargs(hideBin(process.argv))
10211023 const signSendWaitFunc = newSignSendWaiter ( nttOwnerForChain [ chain ] )
10221024 await pushDeployment ( deployment as any ,
10231025 signSendWaitFunc ,
1024- signerType , ! argv [ "skip-verify" ] , argv [ "yes" ] , payerPath ) ;
1026+ signerType , ! argv [ "skip-verify" ] , argv [ "yes" ] , payerPath , gasEstimateMultiplier ) ;
10251027 }
10261028 } )
10271029 . command ( "status" ,
@@ -3536,7 +3538,7 @@ async function missingConfigs(
35363538
35373539async function pushDeployment < C extends Chain > ( deployment : Deployment < C > ,
35383540 signSendWaitFunc : ReturnType < typeof newSignSendWaiter > ,
3539- signerType : SignerType , evmVerify : boolean , yes : boolean , filePath ?: string ) : Promise < void > {
3541+ signerType : SignerType , evmVerify : boolean , yes : boolean , filePath ?: string , gasEstimateMultiplier ?: number ) : Promise < void > {
35403542 const diff = diffObjects ( deployment . config . local ! , deployment . config . remote ! , EXCLUDED_DIFF_PATHS ) ;
35413543 if ( Object . keys ( diff ) . length === 0 ) {
35423544 return ;
@@ -3628,7 +3630,7 @@ async function pushDeployment<C extends Chain>(deployment: Deployment<C>,
36283630 }
36293631 }
36303632 if ( managerUpgrade ) {
3631- await upgrade ( managerUpgrade . from , managerUpgrade . to , deployment . ntt , ctx , signerType , evmVerify ) ;
3633+ await upgrade ( managerUpgrade . from , managerUpgrade . to , deployment . ntt , ctx , signerType , evmVerify , undefined , undefined , undefined , gasEstimateMultiplier ) ;
36323634 }
36333635 for ( const tx of txs ) {
36343636 await signSendWaitFunc ( ctx , tx , signer . signer )
0 commit comments