Skip to content

test_eip_7623()

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

Generate fixtures for these test cases for Osaka with:

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

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

Source code in tests/prague/eip7623_increase_calldata_cost/test_eip_mainnet.py
 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
108
@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 case is only parametrized by fork and fixture format.

Test ID (Abbreviated) data_test_type to tx_gas_delta ty protected access_list blob_versioned_hashes authorization_list
...fork_Prague-state_test----type_0_protected DataTestType.FLOOR_GAS_COST_GREATER_THAN_INTRINSIC_GAS eoa 0 0 True None None None
...fork_Prague-state_test----type_0_unprotected DataTestType.FLOOR_GAS_COST_GREATER_THAN_INTRINSIC_GAS eoa 0 0 False None None None
...fork_Prague-state_test----type_1 DataTestType.FLOOR_GAS_COST_GREATER_THAN_INTRINSIC_GAS eoa 0 1 True [AccessList(rlp_override=None, address=b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01', storage_keys=[b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'])] None None
...fork_Prague-state_test----type_2 DataTestType.FLOOR_GAS_COST_GREATER_THAN_INTRINSIC_GAS eoa 0 2 True [AccessList(rlp_override=None, address=b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01', storage_keys=[b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'])] None None
...fork_Prague-state_test----type_3 DataTestType.FLOOR_GAS_COST_GREATER_THAN_INTRINSIC_GAS eoa 0 3 True [AccessList(rlp_override=None, address=b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01', storage_keys=[b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'])] [b'\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'] None
...fork_Prague-state_test----type_4 DataTestType.FLOOR_GAS_COST_GREATER_THAN_INTRINSIC_GAS eoa 0 4 True [AccessList(rlp_override=None, address=b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01', storage_keys=[b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'])] None [b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01']
...fork_Prague-blockchain_test_from_state_test----type_0_protected DataTestType.FLOOR_GAS_COST_GREATER_THAN_INTRINSIC_GAS eoa 0 0 True None None None
...fork_Prague-blockchain_test_from_state_test----type_0_unprotected DataTestType.FLOOR_GAS_COST_GREATER_THAN_INTRINSIC_GAS eoa 0 0 False None None None
...fork_Prague-blockchain_test_from_state_test----type_1 DataTestType.FLOOR_GAS_COST_GREATER_THAN_INTRINSIC_GAS eoa 0 1 True [AccessList(rlp_override=None, address=b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01', storage_keys=[b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'])] None None
...fork_Prague-blockchain_test_from_state_test----type_2 DataTestType.FLOOR_GAS_COST_GREATER_THAN_INTRINSIC_GAS eoa 0 2 True [AccessList(rlp_override=None, address=b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01', storage_keys=[b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'])] None None
...fork_Prague-blockchain_test_from_state_test----type_3 DataTestType.FLOOR_GAS_COST_GREATER_THAN_INTRINSIC_GAS eoa 0 3 True [AccessList(rlp_override=None, address=b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01', storage_keys=[b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'])] [b'\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'] None
...fork_Prague-blockchain_test_from_state_test----type_4 DataTestType.FLOOR_GAS_COST_GREATER_THAN_INTRINSIC_GAS eoa 0 4 True [AccessList(rlp_override=None, address=b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01', storage_keys=[b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'])] None [b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01']