File tree Expand file tree Collapse file tree
constantinople/eip1052_extcodehash Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -831,7 +831,7 @@ def extcode_checks() -> Bytecode:
831831 tx = Transaction (
832832 sender = pre .fund_eoa (),
833833 to = code_address ,
834- gas_limit = 400_000 ,
834+ gas_limit = 1_000_000 ,
835835 )
836836
837837 post : dict [Address , Account | None ] = {
@@ -1395,7 +1395,7 @@ def extcode_checks() -> Bytecode:
13951395 tx = Transaction (
13961396 sender = pre .fund_eoa (),
13971397 to = code_address ,
1398- gas_limit = 400_000 ,
1398+ gas_limit = 1_000_000 ,
13991399 )
14001400
14011401 post : dict [Address , Account | None ] = {
@@ -1501,7 +1501,7 @@ def inner_extcode_checks() -> Bytecode:
15011501 tx = Transaction (
15021502 sender = pre .fund_eoa (),
15031503 to = outer ,
1504- gas_limit = 400_000 ,
1504+ gas_limit = 1_000_000 ,
15051505 )
15061506
15071507 post : dict [Address , Account | None ] = {
Original file line number Diff line number Diff line change 1616 While ,
1717 compute_create_address ,
1818)
19+ from execution_testing .forks import Amsterdam
1920
2021
2122@pytest .mark .parametrize (
@@ -117,6 +118,7 @@ def test_create_preimage_layout_increment_nonce(
117118def test_create_address_dynamic_nonce (
118119 pre : Alloc ,
119120 state_test : StateTestFiller ,
121+ fork : Fork ,
120122) -> None :
121123 """
122124 Verify CreatePreimageLayout dynamic nonce encoding matches CREATE.
@@ -162,9 +164,12 @@ def test_create_address_dynamic_nonce(
162164 contract = pre .deploy_contract (code = code )
163165 sender = pre .fund_eoa ()
164166
167+ # Amsterdam needs extra gas for EIP-8037 state gas costs
168+ # (260 account creations × 131,488 state gas each).
169+ gas_limit = 60_000_000 if fork >= Amsterdam else 15_000_000
165170 tx = Transaction (
166171 to = contract ,
167- gas_limit = 15_000_000 ,
172+ gas_limit = gas_limit ,
168173 sender = sender ,
169174 )
170175
You can’t perform that action at this time.
0 commit comments