Skip to content

test_valid_multi_type_requests()

Documentation for tests/prague/eip7685_general_purpose_el_requests/test_multi_type_requests.py::test_valid_multi_type_requests@ffe48572.

Generate fixtures for these test cases for Bogota with:

fill -v tests/prague/eip7685_general_purpose_el_requests/test_multi_type_requests.py::test_valid_multi_type_requests --fork Bogota

Test valid combinations of every request type in the same block, from EOAs and from relay contracts, including per-type maximums.

Source code in tests/prague/eip7685_general_purpose_el_requests/test_multi_type_requests.py
@pytest.mark.parametrize_by_fork("requests", get_fork_permutations)
@pytest.mark.eels_base_coverage
@EIPChecklist.ExecutionLayerRequest.Test.CrossRequestType.Update(eip=[8282])
def test_valid_multi_type_requests(
    blockchain_test: BlockchainTestFiller,
    pre: Alloc,
    blocks: List[Block],
) -> None:
    """
    Test valid combinations of every request type in the same block, from
    EOAs and from relay contracts, including per-type maximums.
    """
    blockchain_test(
        genesis_environment=Environment(
            # Per-type maximums exceed the default block gas limit.
            gas_limit=500_000_000
        ),
        pre=pre,
        post={},
        blocks=blocks,
    )

Parametrized Test Cases

This test generates 362 parametrized test cases across 4 forks.