diff --git a/packages/arb-token-bridge-ui/src/token-bridge-sdk/EthDepositStarter.ts b/packages/arb-token-bridge-ui/src/token-bridge-sdk/EthDepositStarter.ts index ad12074454..f25fc861a2 100644 --- a/packages/arb-token-bridge-ui/src/token-bridge-sdk/EthDepositStarter.ts +++ b/packages/arb-token-bridge-ui/src/token-bridge-sdk/EthDepositStarter.ts @@ -122,15 +122,17 @@ export class EthDepositStarter extends BridgeTransferStarter { depositRequest.txRequest ) + const parentChainOverrides = { + gasLimit: percentIncrease(gasLimit, BigNumber.from(5)) + } + const sourceChainTransaction = destinationAddress ? await ethBridger.depositTo({ amount, parentSigner: signer, childProvider: this.destinationChainProvider, destinationAddress, - overrides: { - gasLimit: percentIncrease(gasLimit, BigNumber.from(5)) - }, + overrides: parentChainOverrides, retryableGasOverrides: { // the gas limit may vary by about 20k due to SSTORE (zero vs nonzero) // the 30% gas limit increase should cover the difference @@ -140,7 +142,7 @@ export class EthDepositStarter extends BridgeTransferStarter { : await ethBridger.deposit({ amount, parentSigner: signer, - overrides: { gasLimit: percentIncrease(gasLimit, BigNumber.from(5)) } + overrides: parentChainOverrides }) return {