Skip to content

test_dangling_initcode_subcontainer_bytes()

Documentation for tests/osaka/eip7692_eof_v1/eip7620_eof_create/test_subcontainer_validation.py::test_dangling_initcode_subcontainer_bytes@21fb11c8.

Generate fixtures for these test cases for Osaka with:

fill -v tests/osaka/eip7692_eof_v1/eip7620_eof_create/test_subcontainer_validation.py::test_dangling_initcode_subcontainer_bytes --fork Osaka

Initcode mode EOF Subcontainer test with subcontainer containing dangling bytes.

Source code in tests/osaka/eip7692_eof_v1/eip7620_eof_create/test_subcontainer_validation.py
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
def test_dangling_initcode_subcontainer_bytes(
    eof_test: EOFTestFiller,
):
    """Initcode mode EOF Subcontainer test with subcontainer containing dangling bytes."""
    eof_test(
        container=Container(
            sections=[
                returncontract_code_section,
                Section.Container(
                    container=Container(
                        raw_bytes=stop_sub_container.data + b"\x99",
                    ),
                ),
            ],
            kind=ContainerKind.INITCODE,
        ),
        expect_exception=EOFException.INVALID_SECTION_BODIES_SIZE,
    )

Parametrized Test Cases

This test case is only parametrized by fork.

Test ID (Abbreviated)
...fork_Osaka-eof_test