Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
brtkx committed Sep 24, 2024
1 parent bb13746 commit 0116488
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 {
Expand Down

0 comments on commit 0116488

Please sign in to comment.