Skip to content

test_returncontract_invalid_index_0()

Documentation for tests/osaka/eip7692_eof_v1/eip7620_eof_create/test_returncontract.py::test_returncontract_invalid_index_0@83970623.

Generate fixtures for these test cases for Osaka with:

fill -v tests/osaka/eip7692_eof_v1/eip7620_eof_create/test_returncontract.py::test_returncontract_invalid_index_0 --fork Osaka

Referring to non-existent container section index 0.

Source code in tests/osaka/eip7692_eof_v1/eip7620_eof_create/test_returncontract.py
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
def test_returncontract_invalid_index_0(
    eof_test: EOFTestFiller,
):
    """Referring to non-existent container section index 0."""
    eof_test(
        container_kind=ContainerKind.INITCODE,
        container=Container(
            sections=[
                Section.Code(
                    code=Op.RETURNCONTRACT[0](0, 0),
                ),
            ],
        ),
        expect_exception=EOFException.INVALID_CONTAINER_SECTION_INDEX,
    )

Parametrized Test Cases

This test case is only parametrized by fork.

Test ID (Abbreviated)
...fork_Osaka-eof_test