Skip to content

test_transactions_without_access_list()

Documentation for tests/amsterdam/eip7981_increase_access_list_cost/test_transaction_validity.py::test_transactions_without_access_list@9c2813ee.

Generate fixtures for these test cases for Amsterdam with:

fill -v tests/amsterdam/eip7981_increase_access_list_cost/test_transaction_validity.py::test_transactions_without_access_list --fork Amsterdam

Test that transactions without access lists still work correctly.

EIP-7981 should only affect transactions with non-empty access lists.

Source code in tests/amsterdam/eip7981_increase_access_list_cost/test_transaction_validity.py
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
@pytest.mark.parametrize(
    "tx_type,access_list",
    [
        pytest.param(
            0,
            None,
            id="type_0_no_access_list",
        ),
        pytest.param(
            1,
            [],
            id="type_1_empty_access_list",
        ),
        pytest.param(
            2,
            [],
            id="type_2_empty_access_list",
        ),
        pytest.param(
            3,
            [],
            id="type_3_empty_access_list",
        ),
        pytest.param(
            4,
            [],
            id="type_4_empty_access_list",
        ),
    ],
)
@pytest.mark.parametrize(
    "to",
    [pytest.param("eoa", id="")],
    indirect=True,
)
@pytest.mark.parametrize(
    "tx_gas_delta",
    [pytest.param(0, id="")],
)
def test_transactions_without_access_list(
    state_test: StateTestFiller,
    pre: Alloc,
    tx: Transaction,
) -> None:
    """
    Test that transactions without access lists still work correctly.

    EIP-7981 should only affect transactions with non-empty access lists.
    """
    state_test(
        pre=pre,
        post={},
        tx=tx,
    )

Parametrized Test Cases

This test generates 5 parametrized test cases across 1 fork.