File tree Expand file tree Collapse file tree
amsterdam/eip7928_block_level_access_lists
eip2537_bls_12_381_precompiles Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3361,6 +3361,7 @@ def test_bal_create_storage_op_then_selfdestruct_same_tx(
33613361def test_bal_create2_selfdestruct_then_recreate_same_block (
33623362 pre : Alloc ,
33633363 blockchain_test : BlockchainTestFiller ,
3364+ fork : Fork ,
33643365 pre_balance : int ,
33653366) -> None :
33663367 """
@@ -3410,17 +3411,19 @@ def test_bal_create2_selfdestruct_then_recreate_same_block(
34103411 if pre_balance > 0 :
34113412 pre .fund_address (target_a , pre_balance )
34123413
3414+ # Headroom for the self-destruct to fund a fresh beneficiary.
3415+ gas_limit = (fork .transaction_gas_limit_cap () or 0 ) + 2_000_000
34133416 tx1 = Transaction (
34143417 sender = alice ,
34153418 to = factory ,
34163419 data = initcode_bytes ,
3417- gas_limit = 500_000 ,
3420+ gas_limit = gas_limit ,
34183421 )
34193422 tx2 = Transaction (
34203423 sender = alice ,
34213424 to = factory ,
34223425 data = initcode_bytes ,
3423- gas_limit = 500_000 ,
3426+ gas_limit = gas_limit ,
34243427 )
34253428
34263429 target_a_balance_changes = []
Original file line number Diff line number Diff line change 1919 compute_create_address ,
2020)
2121from execution_testing import Macros as Om
22- from execution_testing .forks .helpers import Fork
2322
2423from . import CreateOpcodeParams , PytestParameterEnum
2524from .spec import ref_spec_1153
@@ -274,7 +273,6 @@ def test_tstore_rollback_on_failed_create(
274273 pre : Alloc ,
275274 fork : Fork ,
276275 create_opcode : Op ,
277- fork : Fork ,
278276) -> None :
279277 """
280278 Test TSTORE is rolled back after failed CREATE/CREATE2 initcode.
Original file line number Diff line number Diff line change 2121 Storage ,
2222 Transaction ,
2323)
24- from execution_testing .test_types import EnvironmentDefaults
25-
2624from .spec import (
2725 GAS_CALCULATION_FUNCTION_MAP ,
2826 PointG1 ,
@@ -218,12 +216,6 @@ def get_split_discount_table_by_fork(
218216 """
219217
220218 def parametrize_by_fork (fork : Fork ) -> List [ParameterSet ]:
221- # TODO(EIP-8037): pin cpsb to the default env gas limit
222- # because collection time doesn't see per-test env overrides.
223- # Tests here use the default Environment, so sizing the
224- # splits against it matches runtime. Remove if the framework
225- # plumbs the per-test env gas limit into covariant markers.
226- fork = fork .with_env_gas_limit (EnvironmentDefaults .gas_limit )
227219 tx_gas_limit_cap = fork .transaction_gas_limit_cap ()
228220 if tx_gas_limit_cap is None :
229221 return [
Original file line number Diff line number Diff line change @@ -2584,7 +2584,6 @@ def test_signature_s_out_of_range(
25842584 pre : Alloc ,
25852585 fork : Fork ,
25862586 chain_config : ChainConfig ,
2587- fork : Fork ,
25882587) -> None :
25892588 """
25902589 Test sending a transaction with an authorization tuple where the signature
@@ -2794,7 +2793,6 @@ def test_nonce_validity(
27942793 fork : Fork ,
27952794 account_nonce : int ,
27962795 authorization_nonce : int ,
2797- fork : Fork ,
27982796) -> None :
27992797 """
28002798 Test sending a transaction where the nonce field of an authorization almost
You can’t perform that action at this time.
0 commit comments