Skip to content

Commit

Permalink
EIP-2935 Contract deployment fix (#8166)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarekM25 authored Feb 5, 2025
1 parent 7dc478a commit 9f5b791
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public void ApplyBlockhashStateChanges(BlockHeader blockHeader)
if (!spec.IsEip2935Enabled || blockHeader.IsGenesis || blockHeader.ParentHash is null) return;

Address? eip2935Account = spec.Eip2935ContractAddress ?? Eip2935Constants.BlockHashHistoryAddress;
if (!worldState.AccountExists(eip2935Account)) return;
if (!worldState.IsContract(eip2935Account)) return;

Hash256 parentBlockHash = blockHeader.ParentHash;
var parentBlockIndex = new UInt256((ulong)((blockHeader.Number - 1) % Eip2935Constants.RingBufferSize));
Expand Down

0 comments on commit 9f5b791

Please sign in to comment.