Skip to content

test_eip_7623()

Documentation for tests/prague/eip7623_increase_calldata_cost/test_eip_mainnet.py::test_eip_7623@892e6d1e.

Generate fixtures for these test cases for Prague with:

fill -v tests/prague/eip7623_increase_calldata_cost/test_eip_mainnet.py::test_eip_7623 --fork Prague

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

Source code in tests/prague/eip7623_increase_calldata_cost/test_eip_mainnet.py
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 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
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
@pytest.mark.parametrize(
    "ty,protected,access_list,blob_versioned_hashes,authorization_list",
    [
        pytest.param(0, True, None, None, None, id="type_0_protected"),
        pytest.param(0, False, None, None, None, id="type_0_unprotected"),
        pytest.param(
            1,
            True,
            [AccessList(address=Address(1), storage_keys=[Hash(0)])],
            None,
            None,
            id="type_1",
        ),
        pytest.param(
            2,
            True,
            [AccessList(address=Address(1), storage_keys=[Hash(0)])],
            None,
            None,
            id="type_2",
        ),
        pytest.param(
            3,
            True,
            [AccessList(address=Address(1), storage_keys=[Hash(0)])],
            add_kzg_version(
                [Hash(x) for x in range(1)],
                EIP_4844_Spec.BLOB_COMMITMENT_VERSION_KZG,
            ),
            None,
            id="type_3",
            marks=pytest.mark.execute(
                pytest.mark.skip(reason="Blob txs not supported by execute")
            ),
        ),
        pytest.param(
            4,
            True,
            [AccessList(address=Address(1), storage_keys=[Hash(0)])],
            None,
            [Address(1)],
            id="type_4",
        ),
    ],
    indirect=["authorization_list"],
)
@pytest.mark.parametrize(
    "tx_gas_delta",
    [
        pytest.param(0, id=""),
    ],
)
@pytest.mark.parametrize(
    "to",
    [
        pytest.param("eoa", id=""),
    ],
    indirect=True,
)
@pytest.mark.parametrize(
    "data_test_type",
    [
        pytest.param(
            DataTestType.FLOOR_GAS_COST_GREATER_THAN_INTRINSIC_GAS,
            id="",
        ),
    ],
)
def test_eip_7623(
    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 6 parametrized test cases across 1 fork.