Skip to content

Commit a7f0eca

Browse files
committed
fix(tests): EIP-7702: execute marks
1 parent 17db052 commit a7f0eca

File tree

1 file changed

+23
-4
lines changed

1 file changed

+23
-4
lines changed

tests/prague/eip7702_set_code_tx/test_set_code_txs.py

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2381,8 +2381,18 @@ def test_tx_validity_chain_id(
23812381
pytest.param(
23822382
2**64, TransactionException.TYPE_4_INVALID_AUTHORIZATION_FORMAT, id="nonce=2**64"
23832383
),
2384-
pytest.param(2**64 - 1, None, id="nonce=2**64-1"),
2385-
pytest.param(2**64 - 2, None, id="nonce=2**64-2"),
2384+
pytest.param(
2385+
2**64 - 1,
2386+
None,
2387+
id="nonce=2**64-1",
2388+
marks=pytest.mark.execute(pytest.mark.skip(reason="Impossible account nonce")),
2389+
),
2390+
pytest.param(
2391+
2**64 - 2,
2392+
None,
2393+
id="nonce=2**64-2",
2394+
marks=pytest.mark.execute(pytest.mark.skip(reason="Impossible account nonce")),
2395+
),
23862396
],
23872397
)
23882398
def test_tx_validity_nonce(
@@ -2454,6 +2464,7 @@ def test_tx_validity_nonce(
24542464
)
24552465

24562466

2467+
@pytest.mark.execute(pytest.mark.skip(reason="Impossible account nonce"))
24572468
def test_nonce_overflow_after_first_authorization(
24582469
state_test: StateTestFiller,
24592470
pre: Alloc,
@@ -2739,10 +2750,13 @@ def test_set_code_to_system_contract(
27392750
+ Op.STOP
27402751
)
27412752
caller_code_address = pre.deploy_contract(caller_code)
2753+
sender = pre.fund_eoa()
2754+
if call_value > 0:
2755+
pre.fund_address(sender, call_value)
27422756

27432757
txs = [
27442758
Transaction(
2745-
sender=pre.fund_eoa(),
2759+
sender=sender,
27462760
gas_limit=500_000,
27472761
to=caller_code_address,
27482762
value=call_value,
@@ -2780,7 +2794,12 @@ def test_set_code_to_system_contract(
27802794

27812795

27822796
@pytest.mark.with_all_evm_code_types
2783-
@pytest.mark.with_all_tx_types(selector=lambda tx_type: tx_type != 4)
2797+
@pytest.mark.with_all_tx_types(
2798+
selector=lambda tx_type: tx_type != 4,
2799+
marks=lambda tx_type: pytest.mark.execute(pytest.mark.skip("incompatible tx"))
2800+
if tx_type in [0, 3]
2801+
else None,
2802+
)
27842803
def test_eoa_tx_after_set_code(
27852804
blockchain_test: BlockchainTestFiller,
27862805
pre: Alloc,

0 commit comments

Comments
 (0)