fixes EIP2200 sentry gas comparison
This commit is contained in:
parent
11f67f87fd
commit
28514dbb28
|
@ -935,7 +935,7 @@ op sstoreEIP2200, inline = false, slot, value:
|
|||
checkInStaticContext(computation)
|
||||
const SentryGasEIP2200 = 2300 # Minimum gas required to be present for an SSTORE call, not consumed
|
||||
|
||||
if computation.gasMeter.gasRemaining < SentryGasEIP2200:
|
||||
if computation.gasMeter.gasRemaining <= SentryGasEIP2200:
|
||||
raise newException(OutOfGas, "Gas not enough to perform EIP2200 SSTORE")
|
||||
|
||||
let stateDB = computation.vmState.readOnlyStateDB
|
||||
|
|
Loading…
Reference in New Issue