Skip to content

test_empty_authorization_list()

Documentation for tests/prague/eip7702_set_code_tx/test_invalid_tx.py::test_empty_authorization_list@21fb11c8.

Generate fixtures for these test cases for Prague with:

fill -v tests/prague/eip7702_set_code_tx/test_invalid_tx.py::test_empty_authorization_list --fork Prague

Test sending a transaction with an empty authorization list.

Source code in tests/prague/eip7702_set_code_tx/test_invalid_tx.py
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
def test_empty_authorization_list(
    transaction_test: TransactionTestFiller,
    pre: Alloc,
):
    """Test sending a transaction with an empty authorization list."""
    tx = Transaction(
        gas_limit=100_000,
        to=0,
        value=0,
        authorization_list=[],
        error=TransactionException.TYPE_4_EMPTY_AUTHORIZATION_LIST,
        sender=pre.fund_eoa(),
    )
    transaction_test(
        pre=pre,
        tx=tx,
    )

Parametrized Test Cases

This test case is only parametrized by fork.

Test ID (Abbreviated)
...fork_Prague-transaction_test
...fork_Osaka-transaction_test