Commit ba8b94a6 authored by Mark Tyneway's avatar Mark Tyneway

sdk: fix min gas limit

parent 40640b09
---
'@eth-optimism/sdk': patch
---
Don't pass 0 gasLimit for migrated withdrawals
......@@ -18,6 +18,7 @@ import {
sleep,
remove0x,
toHexString,
fromHexString,
toRpcHexString,
hashCrossDomainMessage,
encodeCrossDomainMessageV0,
......@@ -351,10 +352,12 @@ export class CrossChainMessenger {
}
}
const minGasLimit = fromHexString(resolved.message).length * 16 + 200_000
return {
...resolved,
value,
minGasLimit: BigNumber.from(0),
minGasLimit: BigNumber.from(minGasLimit),
messageNonce: encodeVersionedNonce(
BigNumber.from(1),
resolved.messageNonce
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment