Skip to content

test_transaction_validity_type_0()

Documentation for tests/amsterdam/eip7976_increase_calldata_floor_cost/test_transaction_validity.py::test_transaction_validity_type_0@ffe48572.

Generate fixtures for these test cases for Bogota with:

fill -v tests/amsterdam/eip7976_increase_calldata_floor_cost/test_transaction_validity.py::test_transaction_validity_type_0 --fork Bogota

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

Source code in tests/amsterdam/eip7976_increase_calldata_floor_cost/test_transaction_validity.py
@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 2 forks.