Commit d2951a33 authored by clabby's avatar clabby

`number` -> `BigNumber`

parent 99dc9a6b
......@@ -58,12 +58,12 @@ export const migratedWithdrawalGasLimit = (
const dataCost = BigNumber.from(hexDataLength(data)).mul(
RELAY_PER_BYTE_DATA_COST
)
let overhead: number
let overhead: BigNumber
if (chainID === 420) {
overhead = 200_000
overhead = BigNumber.from(200_000)
} else {
// Constant overhead
overhead =
overhead = BigNumber.from(
RELAY_CONSTANT_OVERHEAD +
// Dynamic overhead (EIP-150)
(MIN_GAS_DYNAMIC_OVERHEAD_NUMERATOR * 1_000_000) /
......@@ -77,6 +77,7 @@ export const migratedWithdrawalGasLimit = (
// Gas reserved for the execution between the `hasMinGas` check and the `CALL`
// opcode. (Conservative)
RELAY_GAS_CHECK_BUFFER
)
}
let minGasLimit = dataCost.add(overhead)
......
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