Skip to content

Commit c94f3c9

Browse files
committed
chore: re-skip tests that are not for devnet6
1 parent 9b3961a commit c94f3c9

10 files changed

Lines changed: 35 additions & 0 deletions

File tree

tests/osaka/eip7825_transaction_gas_limit_cap/test_tx_gas_limit.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ def tx_gas_limit_cap_tests(fork: Fork) -> List[ParameterSet]:
9090
@pytest.mark.parametrize_by_fork("tx_gas_limit,error", tx_gas_limit_cap_tests)
9191
@pytest.mark.with_all_tx_types
9292
@pytest.mark.valid_from("Prague")
93+
@pytest.mark.valid_before("EIP8037")
9394
def test_transaction_gas_limit_cap(
9495
state_test: StateTestFiller,
9596
pre: Alloc,
@@ -344,6 +345,7 @@ def total_cost_floor_per_token(fork: Fork) -> int:
344345
)
345346
@pytest.mark.parametrize("zero_byte", [True, False])
346347
@pytest.mark.valid_from("Osaka")
348+
@pytest.mark.valid_before("EIP8037")
347349
@pytest.mark.eels_base_coverage
348350
def test_tx_gas_limit_cap_full_calldata(
349351
state_test: StateTestFiller,
@@ -478,6 +480,7 @@ def test_tx_gas_limit_cap_contract_creation(
478480
],
479481
)
480482
@pytest.mark.valid_from("Osaka")
483+
@pytest.mark.valid_before("EIP8037")
481484
def test_tx_gas_limit_cap_access_list_with_diff_keys(
482485
state_test: StateTestFiller,
483486
exceed_tx_gas_limit: bool,
@@ -564,6 +567,7 @@ def intrinsic_cost_for_num_storage_keys(storage_key_count: int) -> int:
564567
],
565568
)
566569
@pytest.mark.valid_from("Osaka")
570+
@pytest.mark.valid_before("EIP8037")
567571
def test_tx_gas_limit_cap_access_list_with_diff_addr(
568572
state_test: StateTestFiller,
569573
pre: Alloc,
@@ -644,6 +648,7 @@ def intrinsic_cost_for_num_accounts(account_count: int) -> int:
644648
],
645649
)
646650
@pytest.mark.valid_from("Osaka")
651+
@pytest.mark.valid_before("EIP8037")
647652
def test_tx_gas_limit_cap_authorized_tx(
648653
state_test: StateTestFiller,
649654
pre: Alloc,

tests/prague/eip6110_deposits/test_deposits.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -716,6 +716,7 @@
716716
),
717717
],
718718
id="single_deposit_from_contract_call_depth_high",
719+
marks=pytest.mark.valid_before("EIP8037"),
719720
),
720721
pytest.param(
721722
[

tests/prague/eip7623_increase_calldata_cost/test_execution_gas.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ def to(
7272
True,
7373
[Address(1)],
7474
id="type_4",
75+
marks=pytest.mark.valid_before("EIP8037"),
7576
),
7677
],
7778
indirect=["authorization_list"],

tests/prague/eip7623_increase_calldata_cost/test_refunds.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,9 @@ def tx_gas_limit(
339339
RefundType.AUTHORIZATION_EXISTING_AUTHORITY,
340340
],
341341
)
342+
# TODO[EIP-8037]: Authorization state gas split affects
343+
# refund calculations for Amsterdam.
344+
@pytest.mark.valid_before("EIP8037")
342345
def test_gas_refunds_from_data_floor(
343346
state_test: StateTestFiller,
344347
pre: Alloc,

tests/prague/eip7623_increase_calldata_cost/test_transaction_validity.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,10 @@ def test_transaction_validity_type_0(
156156
"ty",
157157
[pytest.param(1, id="type_1"), pytest.param(2, id="type_2")],
158158
)
159+
# TODO[EIP-8037]: Contract creation state gas
160+
# (G_TRANSACTION_CREATE) split affects intrinsic gas
161+
# calculation for Amsterdam.
162+
@pytest.mark.valid_before("EIP8037")
159163
def test_transaction_validity_type_1_type_2(
160164
state_test: StateTestFiller,
161165
pre: Alloc,

tests/prague/eip7702_set_code_tx/test_gas.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -841,6 +841,7 @@ def gas_test_parameter_args(
841841
)
842842
)
843843
@pytest.mark.slow()
844+
@pytest.mark.valid_before("EIP8037")
844845
def test_gas_cost(
845846
state_test: StateTestFiller,
846847
pre: Alloc,
@@ -1116,6 +1117,10 @@ def test_account_warming(
11161117
"valid",
11171118
[True, pytest.param(False, marks=pytest.mark.exception_test)],
11181119
)
1120+
# TODO[EIP-8037]: EELS uses PER_EMPTY_ACCOUNT_COST=25,000
1121+
# per auth for intrinsic gas check, but Amsterdam
1122+
# G_AUTHORIZATION=165,990 includes state gas. EELS bug?
1123+
@pytest.mark.valid_before("EIP8037")
11191124
def test_intrinsic_gas_cost(
11201125
state_test: StateTestFiller,
11211126
pre: Alloc,

tests/prague/eip7702_set_code_tx/test_set_code_txs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2947,6 +2947,7 @@ def test_set_code_to_precompile(
29472947

29482948

29492949
@pytest.mark.with_all_precompiles
2950+
@pytest.mark.valid_before("EIP8037")
29502951
def test_set_code_to_precompile_not_enough_gas_for_precompile_execution(
29512952
state_test: StateTestFiller,
29522953
pre: Alloc,

tests/prague/eip7702_set_code_tx/test_set_code_txs_2.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@
3636

3737

3838
@pytest.mark.valid_from("Prague")
39+
# TODO[EIP-8037]: Amsterdam expected_loop_count needs
40+
# recalculating due to state gas.
41+
@pytest.mark.valid_before("EIP8037")
3942
# TODO[EIP-8037]: Fix Storage.KeyValueMismatchError for
4043
# contract_loop expected values.
4144
@pytest.mark.skip(
@@ -689,6 +692,7 @@ class AccessListTo(Enum):
689692
[AccessListTo.POINTER_ADDRESS, AccessListTo.CONTRACT_ADDRESS],
690693
)
691694
@pytest.mark.valid_from("Prague")
695+
@pytest.mark.valid_before("EIP8037")
692696
def test_gas_diff_pointer_vs_direct_call(
693697
blockchain_test: BlockchainTestFiller,
694698
pre: Alloc,
@@ -903,6 +907,7 @@ def test_gas_diff_pointer_vs_direct_call(
903907

904908

905909
@pytest.mark.valid_from("Prague")
910+
@pytest.mark.valid_before("EIP8037")
906911
def test_pointer_call_followed_by_direct_call(
907912
state_test: StateTestFiller,
908913
pre: Alloc,

tests/shanghai/eip3860_initcode/test_initcode.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,10 @@ def post(
401401
)
402402
return Alloc({create_contract_address: Account.NONEXISTENT})
403403

404+
# TODO[EIP-8037]: Code deposit and G_CREATE become
405+
# state gas under Amsterdam.
406+
# Gas calculations need updating for two-dimensional gas.
407+
@pytest.mark.valid_before("EIP8037")
404408
@pytest.mark.slow()
405409
def test_gas_usage(
406410
self,
@@ -603,6 +607,10 @@ def code_deposit_gas(self, fork: Fork, initcode: Initcode) -> int:
603607
dep = initcode.deployment_gas
604608
return dep(fork) if callable(dep) else dep
605609

610+
# TODO[EIP-8037]: Code deposit and G_CREATE become
611+
# state gas under Amsterdam.
612+
# Gas calculations need updating for two-dimensional gas.
613+
@pytest.mark.valid_before("EIP8037")
606614
@pytest.mark.xdist_group(name="bigmem")
607615
@pytest.mark.slow()
608616
def test_create_opcode_initcode(

tests/tangerine_whistle/eip150_operation_gas_costs/test_eip150_selfdestruct.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ def build_post_state(
329329
[0, 1],
330330
ids=["dead_beneficiary", "alive_beneficiary"],
331331
)
332+
@pytest.mark.valid_before("EIP8037") # TODO[EIP-8037]: Fix for Amsterdam
332333
def test_selfdestruct_to_account(
333334
pre: Alloc,
334335
blockchain_test: BlockchainTestFiller,
@@ -582,6 +583,7 @@ def test_selfdestruct_state_access_boundary(
582583
],
583584
)
584585
@pytest.mark.valid_from("TangerineWhistle")
586+
@pytest.mark.valid_before("EIP8037") # TODO[EIP-8037]: Fix for Amsterdam
585587
def test_selfdestruct_to_precompile(
586588
pre: Alloc,
587589
blockchain_test: BlockchainTestFiller,

0 commit comments

Comments
 (0)