Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Loading