Skip to content

test_transaction_validity_type_0()

Documentation for tests/prague/eip7623_increase_calldata_cost/test_transaction_validity.py::test_transaction_validity_type_0@20373115.

Generate fixtures for these test cases for Amsterdam with:

fill -v tests/prague/eip7623_increase_calldata_cost/test_transaction_validity.py::test_transaction_validity_type_0 --fork Amsterdam

Test transaction validity for transactions without access lists and contract creation.

Source code in tests/prague/eip7623_increase_calldata_cost/test_transaction_validity.py
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
@pytest.mark.parametrize(
    "protected",
    [
        pytest.param(True, id="protected"),
        pytest.param(False, id="unprotected"),
    ],
)
@pytest.mark.parametrize(
    "ty",
    [pytest.param(0, id="type_0")],
)
@pytest.mark.parametrize(
    "to",
    [
        pytest.param("eoa", id="to_eoa"),
        pytest.param(None, id="contract_creating"),
        pytest.param(Op.STOP, id=""),
    ],
    indirect=True,
)
def test_transaction_validity_type_0(
    state_test: StateTestFiller,
    pre: Alloc,
    tx: Transaction,
) -> None:
    """
    Test transaction validity for transactions without access lists and
    contract creation.
    """
    state_test(
        pre=pre,
        post={},
        tx=tx,
    )

Parametrized Test Cases

This test generates 36 parametrized test cases across 3 forks.