@@ -83,6 +83,7 @@ def test_selfdestruct_to_self_same_tx(
8383 state_test : StateTestFiller ,
8484 env : Environment ,
8585 pre : Alloc ,
86+ fork : Fork ,
8687 sender : EOA ,
8788 contract_balance : int ,
8889 create_opcode : Op ,
@@ -125,7 +126,9 @@ def test_selfdestruct_to_self_same_tx(
125126 sender = sender ,
126127 to = factory ,
127128 value = contract_balance ,
128- gas_limit = 300_000 ,
129+ # Same-tx CREATE+SELFDESTRUCT charges NEW_ACCOUNT state gas
130+ # under EIP-8037 (0 otherwise).
131+ gas_limit = 200_000 + fork .gas_costs ().NEW_ACCOUNT ,
129132 expected_receipt = TransactionReceipt (logs = expected_logs ),
130133 )
131134
@@ -144,6 +147,7 @@ def test_selfdestruct_to_different_address_same_tx(
144147 state_test : StateTestFiller ,
145148 env : Environment ,
146149 pre : Alloc ,
150+ fork : Fork ,
147151 sender : EOA ,
148152 contract_balance : int ,
149153 create_opcode : Op ,
@@ -189,7 +193,9 @@ def test_selfdestruct_to_different_address_same_tx(
189193 sender = sender ,
190194 to = factory ,
191195 value = contract_balance ,
192- gas_limit = 300_000 ,
196+ # Same-tx CREATE+SELFDESTRUCT charges NEW_ACCOUNT state gas
197+ # under EIP-8037 (0 otherwise).
198+ gas_limit = 200_000 + fork .gas_costs ().NEW_ACCOUNT ,
193199 expected_receipt = TransactionReceipt (logs = expected_logs ),
194200 )
195201
@@ -222,6 +228,7 @@ def test_selfdestruct_same_tx_via_call(
222228 state_test : StateTestFiller ,
223229 env : Environment ,
224230 pre : Alloc ,
231+ fork : Fork ,
225232 sender : EOA ,
226233 to_self : bool ,
227234 call_twice : bool ,
@@ -303,7 +310,9 @@ def test_selfdestruct_same_tx_via_call(
303310 sender = sender ,
304311 to = factory ,
305312 value = 0 ,
306- gas_limit = 300_000 ,
313+ # CREATE-then-CALL with same-tx SELFDESTRUCT charges
314+ # NEW_ACCOUNT state gas under EIP-8037 (0 otherwise).
315+ gas_limit = 200_000 + fork .gas_costs ().NEW_ACCOUNT ,
307316 expected_receipt = TransactionReceipt (logs = expected_logs ),
308317 )
309318
0 commit comments