Skip to content

Commit

Permalink
EXTCODESIZE+POP (#7437)
Browse files Browse the repository at this point in the history
  • Loading branch information
benaadams authored Sep 16, 2024
1 parent f601699 commit 0e1220c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Nethermind/Nethermind.Evm/VirtualMachine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1261,6 +1261,14 @@ private CallResult ExecuteCode<TTracingInstructions, TTracingRefunds, TTracingSt
{
bool optimizeAccess = false;
Instruction nextInstruction = (Instruction)code[programCounter];
// Thrown away result
if (nextInstruction == Instruction.POP)
{
programCounter++;
// Add gas cost for POP
gasAvailable -= GasCostOf.Base;
break;
}
// code.length is zero
if (nextInstruction == Instruction.ISZERO)
{
Expand Down

0 comments on commit 0e1220c

Please sign in to comment.