mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-02-25 02:15:30 +00:00
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)
|
checkInStaticContext(computation)
|
||||||
const SentryGasEIP2200 = 2300 # Minimum gas required to be present for an SSTORE call, not consumed
|
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")
|
raise newException(OutOfGas, "Gas not enough to perform EIP2200 SSTORE")
|
||||||
|
|
||||||
let stateDB = computation.vmState.readOnlyStateDB
|
let stateDB = computation.vmState.readOnlyStateDB
|
||||||
|
Loading…
x
Reference in New Issue
Block a user