diff --git a/src/Nethermind/Nethermind.Evm/Instructions/EvmInstructions.ControlFlow.cs b/src/Nethermind/Nethermind.Evm/Instructions/EvmInstructions.ControlFlow.cs index 1bd918970b9..067ce786d6d 100644 --- a/src/Nethermind/Nethermind.Evm/Instructions/EvmInstructions.ControlFlow.cs +++ b/src/Nethermind/Nethermind.Evm/Instructions/EvmInstructions.ControlFlow.cs @@ -211,7 +211,8 @@ private static EvmExceptionType InstructionSelfDestruct(VirtualMachine vm, ref E // If Shanghai DDoS protection is active, charge the appropriate gas cost. if (spec.UseShanghaiDDosProtection) { - gasAvailable -= GasCostOf.SelfDestructEip150; + if (!EvmCalculations.UpdateGas(GasCostOf.SelfDestructEip150, ref gasAvailable)) + goto OutOfGas; } // Pop the inheritor address from the stack; signal underflow if missing.