Skip to content

Commit

Permalink
fix extcodehash
Browse files Browse the repository at this point in the history
  • Loading branch information
ak88 committed Sep 2, 2024
1 parent 62dfc7f commit 3dbb0ef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Nethermind/Nethermind.Evm/VirtualMachine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1894,7 +1894,9 @@ private CallResult ExecuteCode<TTracingInstructions, TTracingRefunds, TTracingSt
if (address is null) goto StackUnderflow;
if (!ChargeAccountAccessGas(ref gasAvailable, vmState, address, true, spec)) goto OutOfGas;

if (!_state.AccountExists(address) || _state.IsDeadAccount(address))
if (!_state.AccountExists(address) || _state.IsDeadAccount(address) ||
env.TxExecutionContext.CodeInfoRepository.IsDelegation(_state, address, out Address delegatedAddress)
&& !_state.AccountExists(delegatedAddress))
{
stack.PushZero();
}
Expand Down

0 comments on commit 3dbb0ef

Please sign in to comment.