Skip to content

test_returncode_valid_index_1()

Documentation for tests/osaka/eip7692_eof_v1/eip7620_eof_create/test_returncode.py::test_returncode_valid_index_1@3719e927.

Generate fixtures for these test cases for Osaka with:

fill -v tests/osaka/eip7692_eof_v1/eip7620_eof_create/test_returncode.py::test_returncode_valid_index_1 --fork Osaka

Deploy container index 1.

Source code in tests/osaka/eip7692_eof_v1/eip7620_eof_create/test_returncode.py
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
def test_returncode_valid_index_1(
    eof_test: EOFTestFiller,
):
    """Deploy container index 1."""
    eof_test(
        container_kind=ContainerKind.INITCODE,
        container=Container(
            sections=[
                Section.Code(
                    code=Op.RJUMPI[6](0) + Op.RETURNCODE[0](0, 0) + Op.RETURNCODE[1](0, 0),
                    max_stack_height=2,
                ),
                Section.Container(container=Container(sections=[Section.Code(code=Op.INVALID)])),
                Section.Container(container=Container(sections=[Section.Code(code=Op.INVALID)])),
            ],
        ),
    )

Parametrized Test Cases

This test case is only parametrized by fork and fixture format.

Test ID (Abbreviated)
...fork_Osaka-eof_test
...fork_Osaka-state_test_from_eof_test
...fork_Osaka-blockchain_test_from_eof_test