Skip to content

test_returncontract_terminating()

Documentation for tests/osaka/eip7692_eof_v1/eip7620_eof_create/test_returncontract.py::test_returncontract_terminating@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_terminating --fork Osaka

Unreachable code after RETURNCONTRACT.

Source code in tests/osaka/eip7692_eof_v1/eip7620_eof_create/test_returncontract.py
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
def test_returncontract_terminating(
    eof_test: EOFTestFiller,
):
    """Unreachable code after RETURNCONTRACT."""
    eof_test(
        container_kind=ContainerKind.INITCODE,
        container=Container(
            sections=[
                Section.Code(
                    code=Op.RETURNCONTRACT[0](0, 0) + Op.REVERT(0, 0),
                ),
                Section.Container(container=Container(sections=[Section.Code(code=Op.INVALID)])),
            ],
        ),
        expect_exception=EOFException.UNREACHABLE_INSTRUCTIONS,
    )

Parametrized Test Cases

This test case is only parametrized by fork.

Test ID (Abbreviated)
...fork_Osaka-eof_test