diff --git a/src/ethereum_test_fixtures/blockchain.py b/src/ethereum_test_fixtures/blockchain.py index 2ecce58198..c5a48a4b82 100644 --- a/src/ethereum_test_fixtures/blockchain.py +++ b/src/ethereum_test_fixtures/blockchain.py @@ -106,9 +106,9 @@ class FixtureHeader(CamelModel): extra_data: Bytes prev_randao: Hash = Field(Hash(0), alias="mixHash") nonce: HeaderNonce = Field(HeaderNonce(0), validate_default=True) - base_fee_per_gas: Annotated[ZeroPaddedHexNumber, HeaderForkRequirement("base_fee")] | None = ( - Field(None) - ) + base_fee_per_gas: Annotated[ + ZeroPaddedHexNumber, HeaderForkRequirement("base_fee") + ] | None = Field(None) withdrawals_root: Annotated[Hash, HeaderForkRequirement("withdrawals")] | None = Field(None) blob_gas_used: ( Annotated[ZeroPaddedHexNumber, HeaderForkRequirement("blob_gas_used")] | None diff --git a/src/ethereum_test_specs/tests/fixtures/blockchain_london_invalid_filled.json b/src/ethereum_test_specs/tests/fixtures/blockchain_london_invalid_filled.json index 3ee643a0bc..f14b6d2a9e 100644 --- a/src/ethereum_test_specs/tests/fixtures/blockchain_london_invalid_filled.json +++ b/src/ethereum_test_specs/tests/fixtures/blockchain_london_invalid_filled.json @@ -1,9 +1,10 @@ { "000/my_blockchain_test/London": { "_info": { - "hash": "0x4de3f84e3cb1e678141d81ce96ce75edb53f1824a708e26098b610c3c1030e66" + "hash": "0xde0db4518cb2732da0eb2ee84cfe0d22831f5cbf35433c30712f1fe8c0cd69a2" }, "network": "London", + "chainId": "0x01", "genesisRLP": "0xf90200f901fba00000000000000000000000000000000000000000000000000000000000000000a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347940000000000000000000000000000000000000000a089a5be1d3306f6f05b42678ef13ac3dbc37bef9a2a80862c21eb22eee29194c2a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421b9010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000830200008088016345785d8a0000808000a000000000000000000000000000000000000000000000000000000000000000008800000000000000008203e8c0c0", "genesisBlockHeader": { "parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000", diff --git a/src/ethereum_test_specs/tests/fixtures/blockchain_london_valid_filled.json b/src/ethereum_test_specs/tests/fixtures/blockchain_london_valid_filled.json index d8e6edb3b7..f47b98f38c 100644 --- a/src/ethereum_test_specs/tests/fixtures/blockchain_london_valid_filled.json +++ b/src/ethereum_test_specs/tests/fixtures/blockchain_london_valid_filled.json @@ -1,9 +1,10 @@ { "000/my_blockchain_test/London": { "_info": { - "hash": "0x91032fb245f4488b204198312cbf16429c121435705ac3f9c6eb3943ec0bc36d" + "hash": "0xa59b9cc35aafe088a6940102313eaeea785f3e96df7e1f58dcfe20784824b26e" }, "network": "London", + "chainId": "0x01", "genesisRLP": "0xf90200f901fba00000000000000000000000000000000000000000000000000000000000000000a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347940000000000000000000000000000000000000000a089a5be1d3306f6f05b42678ef13ac3dbc37bef9a2a80862c21eb22eee29194c2a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421b9010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000830200008088016345785d8a0000808000a000000000000000000000000000000000000000000000000000000000000000008800000000000000008203e8c0c0", "genesisBlockHeader": { "parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000", diff --git a/src/ethereum_test_specs/tests/fixtures/blockchain_shanghai_invalid_filled_engine.json b/src/ethereum_test_specs/tests/fixtures/blockchain_shanghai_invalid_filled_engine.json index 33f7a73f7b..22f68e48be 100644 --- a/src/ethereum_test_specs/tests/fixtures/blockchain_shanghai_invalid_filled_engine.json +++ b/src/ethereum_test_specs/tests/fixtures/blockchain_shanghai_invalid_filled_engine.json @@ -1,10 +1,11 @@ { "000/my_blockchain_test/Shanghai": { "_info": { - "hash": "0x107426e7483fe00d8db263f7522d523a6efbed5c93fd98006e65593ce496a1c4" + "hash": "0x2ab6af0a5279f68b03e0b382616f0def195177e43829d34212d16e80e4c3e5f6" }, "lastblockhash": "0xfc75f11c05ec814a890141bef919bb7c20dd29245e37e9bcea66008dfde98526", "network": "Shanghai", + "chainId": "0x01", "genesisBlockHeader": { "parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000", "uncleHash": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", diff --git a/src/ethereum_test_specs/tests/fixtures/blockchain_shanghai_valid_filled_engine.json b/src/ethereum_test_specs/tests/fixtures/blockchain_shanghai_valid_filled_engine.json index 3270566ec0..dcdfe3fd8c 100644 --- a/src/ethereum_test_specs/tests/fixtures/blockchain_shanghai_valid_filled_engine.json +++ b/src/ethereum_test_specs/tests/fixtures/blockchain_shanghai_valid_filled_engine.json @@ -1,10 +1,11 @@ { "000/my_blockchain_test/Shanghai": { "_info": { - "hash": "0x9a25679729dab0fa4d90f56a7458ca2c4b7428853e9ef1e1aea6dae203926368" + "hash": "0xdb14f7d22b78241a6e80a1b420759b4dfcf21f5459840609d1c20922baf6b68e" }, "lastblockhash": "0xfc75f11c05ec814a890141bef919bb7c20dd29245e37e9bcea66008dfde98526", "network": "Shanghai", + "chainId": "0x01", "genesisBlockHeader": { "parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000", "uncleHash": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", diff --git a/src/ethereum_test_specs/tests/fixtures/chainid_istanbul_blockchain_test.json b/src/ethereum_test_specs/tests/fixtures/chainid_istanbul_blockchain_test.json index 040110f9c5..42e38d21b2 100644 --- a/src/ethereum_test_specs/tests/fixtures/chainid_istanbul_blockchain_test.json +++ b/src/ethereum_test_specs/tests/fixtures/chainid_istanbul_blockchain_test.json @@ -1,9 +1,10 @@ { "000/my_chain_id_test/Istanbul": { "_info": { - "hash": "0x3ca9936ff21270dd7ac781b5fafd98e4264bc9fcff4ab3cc8dff0677ccf7fc25" + "hash": "0x55a090cb95a019ad95056bca86a833d08c79cca62615a67da4757dd42cb5d027" }, "network": "Istanbul", + "chainId": "0x01", "genesisRLP": "0xf901faf901f5a00000000000000000000000000000000000000000000000000000000000000000a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347940000000000000000000000000000000000000000a0aff9f63320a482f8c4e4f15f659e6a7ac382138fbbb6919243b0cba4c5988a5aa056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421b901000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000083020000808502540be400808000a00000000000000000000000000000000000000000000000000000000000000000880000000000000000c0c0", "genesisBlockHeader": { "parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000", diff --git a/src/ethereum_test_specs/tests/fixtures/chainid_london_blockchain_test.json b/src/ethereum_test_specs/tests/fixtures/chainid_london_blockchain_test.json index 0681eb1fe5..e88af22641 100644 --- a/src/ethereum_test_specs/tests/fixtures/chainid_london_blockchain_test.json +++ b/src/ethereum_test_specs/tests/fixtures/chainid_london_blockchain_test.json @@ -1,9 +1,10 @@ { "000/my_chain_id_test/London": { "_info": { - "hash": "0x9c09a561959f81ff5e5b081b9081bd626739fa029e9d411ea89797673366eb80" + "hash": "0x1eb6a60d96a93be5e7bdd86ae2d27e6390bad24dae48883861acaa9cffbfc278" }, "network": "London", + "chainId": "0x01", "genesisRLP": "0xf901fbf901f6a00000000000000000000000000000000000000000000000000000000000000000a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347940000000000000000000000000000000000000000a0aff9f63320a482f8c4e4f15f659e6a7ac382138fbbb6919243b0cba4c5988a5aa056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421b901000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000083020000808502540be400808000a0000000000000000000000000000000000000000000000000000000000000000088000000000000000007c0c0", "genesisBlockHeader": { "parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000", diff --git a/src/ethereum_test_specs/tests/fixtures/chainid_paris_blockchain_test_engine.json b/src/ethereum_test_specs/tests/fixtures/chainid_paris_blockchain_test_engine.json index 792fb4798f..7bd56cfe8b 100644 --- a/src/ethereum_test_specs/tests/fixtures/chainid_paris_blockchain_test_engine.json +++ b/src/ethereum_test_specs/tests/fixtures/chainid_paris_blockchain_test_engine.json @@ -1,9 +1,10 @@ { "000/my_chain_id_test/Paris": { "_info": { - "hash": "0x1c6d2ca8e03c5074e8afadbad869c90b61d2f9752c5ef2d7908900aa000a3878" + "hash": "0xea4f540cc129ace3ae48af60551dcc5dc63c0fe2f067080c3c5ffb245b9a882a" }, "network": "Paris", + "chainId": "0x01", "lastblockhash": "0xe92eedff2a0489bd861f528e248994b6791b0f5b845d90b34c68bc8cbc51c369", "genesisBlockHeader": { "parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000", diff --git a/src/ethereum_test_specs/tests/fixtures/chainid_paris_state_test.json b/src/ethereum_test_specs/tests/fixtures/chainid_paris_state_test.json index bfe2cd2b2c..9689f7df92 100644 --- a/src/ethereum_test_specs/tests/fixtures/chainid_paris_state_test.json +++ b/src/ethereum_test_specs/tests/fixtures/chainid_paris_state_test.json @@ -1,9 +1,10 @@ { "000/my_chain_id_test/Paris": { "_info": { - "hash": "0x9533310242d3fe15fca5ea1d31f97121f7db0f54843c9f2160c01f2468b10535" + "hash": "0xc698794bb4d053d9200b352c2ff94829a506a986567e13c8a384ae11157b8292" }, "env": { + "chainId": "0x01", "currentCoinbase": "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", "currentGasLimit": "0x02540be400", "currentNumber": "0x01", diff --git a/src/ethereum_test_specs/tests/fixtures/chainid_shanghai_blockchain_test_engine.json b/src/ethereum_test_specs/tests/fixtures/chainid_shanghai_blockchain_test_engine.json index 8f94dc8e94..a6070690e2 100644 --- a/src/ethereum_test_specs/tests/fixtures/chainid_shanghai_blockchain_test_engine.json +++ b/src/ethereum_test_specs/tests/fixtures/chainid_shanghai_blockchain_test_engine.json @@ -1,10 +1,11 @@ { "000/my_chain_id_test/Shanghai": { "_info": { - "hash": "0xfeded8f82a93725388c2436c76ea328cf2008dab43000de76306b3ed95de63b7" + "hash": "0x881251bb38b5be1afd02ee01b2743561dd491b4e57aea9d3159f5d6deb1c8b3a" }, "lastblockhash": "0x9c10141361e180632f7973f4f3a0aed2baa5ebb776bae84caafdcc07a24933e8", "network": "Shanghai", + "chainId": "0x01", "genesisBlockHeader": { "parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000", "uncleHash": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", diff --git a/src/ethereum_test_specs/tests/fixtures/chainid_shanghai_state_test.json b/src/ethereum_test_specs/tests/fixtures/chainid_shanghai_state_test.json index 97c25aa49b..91c598cfae 100644 --- a/src/ethereum_test_specs/tests/fixtures/chainid_shanghai_state_test.json +++ b/src/ethereum_test_specs/tests/fixtures/chainid_shanghai_state_test.json @@ -1,9 +1,10 @@ { "000/my_chain_id_test/Shanghai": { "_info": { - "hash": "0xac10a919bea8bb3bc6b74cb291d92ce12549216dd78dde2d2bd6d94fd48897aa" + "hash": "0x0bd6c5179a96d754f76637e8b89a6a6bdc9773af4d81094d9416a3c26c93fd5a" }, "env": { + "chainId": "0x01", "currentCoinbase": "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", "currentGasLimit": "0x02540be400", "currentNumber": "0x01", diff --git a/src/ethereum_test_types/tests/test_types.py b/src/ethereum_test_types/tests/test_types.py index 8d49f7c2ab..59d88ae8be 100644 --- a/src/ethereum_test_types/tests/test_types.py +++ b/src/ethereum_test_types/tests/test_types.py @@ -479,6 +479,7 @@ def test_account_merge( True, Environment(), { + "chainId": "1", "currentCoinbase": "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", "currentGasLimit": "100000000000000000", "currentNumber": "1", @@ -512,6 +513,7 @@ def test_account_merge( block_hashes={1: 2, 3: 4}, ), { + "chainId": "1", "currentCoinbase": "0x0000000000000000000000000000000000001234", "currentGasLimit": "100000000000000000", "currentNumber": "1",