Skip to content

Commit

Permalink
try add hist stor contract.
Browse files Browse the repository at this point in the history
  • Loading branch information
spencer-tb committed May 15, 2024
1 parent 1311c46 commit 2d812e1
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/ethereum_test_forks/forks/forks.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,3 +501,18 @@ def environment_verkle_conversion_starts(
Verkle conversion starts in this fork.
"""
return True

@classmethod
def pre_allocation_blockchain(cls) -> Mapping:
"""
Prague requires pre-allocation of the history storage contract for EIP-2935 on blockchain
type tests.
"""
new_allocation = {
0x25A219378DAD9B3503C8268C9CA836A52427A4FB: {
"nonce": 1,
"code": "0x60203611603157600143035f35116029575f35612000014311602957612000"
"5f3506545f5260205ff35b5f5f5260205ff35b5f5ffd00",
}
}
return new_allocation | super(Prague, cls).pre_allocation_blockchain()

0 comments on commit 2d812e1

Please sign in to comment.