|
10 | 10 | from click.testing import CliRunner |
11 | 11 |
|
12 | 12 | import cli.check_fixtures |
13 | | -from ethereum_test_base_types import Account, Hash |
| 13 | +from ethereum_test_base_types import Account, Address, Hash |
14 | 14 | from ethereum_test_exceptions import TransactionException |
15 | 15 | from ethereum_test_fixtures import BlockchainFixture, FixtureFormats |
16 | 16 | from ethereum_test_fixtures.blockchain import FixtureCommon |
@@ -38,9 +38,9 @@ def hash(request: pytest.FixtureRequest): |
38 | 38 | Set the hash based on the fork and solc version. |
39 | 39 | """ |
40 | 40 | if request.node.funcargs["fork"] == Berlin: |
41 | | - return bytes.fromhex("0408c6a5c6") |
| 41 | + return bytes.fromhex("e57ad774ca") |
42 | 42 | elif request.node.funcargs["fork"] == London: |
43 | | - return bytes.fromhex("a1babd536a") |
| 43 | + return bytes.fromhex("3714102a4c") |
44 | 44 |
|
45 | 45 |
|
46 | 46 | def test_check_helper_fixtures(): |
@@ -73,12 +73,16 @@ def test_check_helper_fixtures(): |
73 | 73 | def test_make_genesis(fork: Fork, hash: bytes): # noqa: D103 |
74 | 74 | env = Environment() |
75 | 75 |
|
76 | | - pre = Alloc() |
77 | | - pre.deploy_contract( |
78 | | - (Op.SSTORE(0, Op.ADD(1, 2)) + Op.RETURN(0, 32)), |
79 | | - balance=0x0BA1A9CE0BA1A9CE, |
| 76 | + pre = Alloc( |
| 77 | + { |
| 78 | + Address(0x0BA1A9CE0BA1A9CE): Account(balance=0x0BA1A9CE0BA1A9CE), |
| 79 | + Address(0xC0DE): Account( |
| 80 | + code=Op.SSTORE(0, Op.ADD(1, 2)) + Op.RETURN(0, 32), |
| 81 | + balance=0x0BA1A9CE0BA1A9CE, |
| 82 | + nonce=1, |
| 83 | + ), |
| 84 | + } |
80 | 85 | ) |
81 | | - pre.fund_eoa(0x0BA1A9CE0BA1A9CE) |
82 | 86 |
|
83 | 87 | t8n = GethTransitionTool() |
84 | 88 | fixture = BlockchainTest( |
|
0 commit comments