diff --git a/nimbus/vm/interpreter/opcodes_impl.nim b/nimbus/vm/interpreter/opcodes_impl.nim index 91d5ab3a8..522cbbd4a 100644 --- a/nimbus/vm/interpreter/opcodes_impl.nim +++ b/nimbus/vm/interpreter/opcodes_impl.nim @@ -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