Skip to content

Commit

Permalink
fix(tests): EIP-7702: execute marks
Browse files Browse the repository at this point in the history
  • Loading branch information
marioevz committed Oct 24, 2024
1 parent 17db052 commit a7f0eca
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions tests/prague/eip7702_set_code_tx/test_set_code_txs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2381,8 +2381,18 @@ def test_tx_validity_chain_id(
pytest.param(
2**64, TransactionException.TYPE_4_INVALID_AUTHORIZATION_FORMAT, id="nonce=2**64"
),
pytest.param(2**64 - 1, None, id="nonce=2**64-1"),
pytest.param(2**64 - 2, None, id="nonce=2**64-2"),
pytest.param(
2**64 - 1,
None,
id="nonce=2**64-1",
marks=pytest.mark.execute(pytest.mark.skip(reason="Impossible account nonce")),
),
pytest.param(
2**64 - 2,
None,
id="nonce=2**64-2",
marks=pytest.mark.execute(pytest.mark.skip(reason="Impossible account nonce")),
),
],
)
def test_tx_validity_nonce(
Expand Down Expand Up @@ -2454,6 +2464,7 @@ def test_tx_validity_nonce(
)


@pytest.mark.execute(pytest.mark.skip(reason="Impossible account nonce"))
def test_nonce_overflow_after_first_authorization(
state_test: StateTestFiller,
pre: Alloc,
Expand Down Expand Up @@ -2739,10 +2750,13 @@ def test_set_code_to_system_contract(
+ Op.STOP
)
caller_code_address = pre.deploy_contract(caller_code)
sender = pre.fund_eoa()
if call_value > 0:
pre.fund_address(sender, call_value)

txs = [
Transaction(
sender=pre.fund_eoa(),
sender=sender,
gas_limit=500_000,
to=caller_code_address,
value=call_value,
Expand Down Expand Up @@ -2780,7 +2794,12 @@ def test_set_code_to_system_contract(


@pytest.mark.with_all_evm_code_types
@pytest.mark.with_all_tx_types(selector=lambda tx_type: tx_type != 4)
@pytest.mark.with_all_tx_types(
selector=lambda tx_type: tx_type != 4,
marks=lambda tx_type: pytest.mark.execute(pytest.mark.skip("incompatible tx"))
if tx_type in [0, 3]
else None,
)
def test_eoa_tx_after_set_code(
blockchain_test: BlockchainTestFiller,
pre: Alloc,
Expand Down

0 comments on commit a7f0eca

Please sign in to comment.