fixes EIP2200 sentry gas comparison

This commit is contained in:
andri lim 2019-11-18 20:48:30 +07:00
parent 11f67f87fd
commit 28514dbb28
No known key found for this signature in database
GPG Key ID: 31702AE10541E6B9
1 changed files with 1 additions and 1 deletions

View File

@ -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