Skip to content

test_returncontract_valid_index_255()

Documentation for tests/osaka/eip7692_eof_v1/eip7620_eof_create/test_returncontract.py::test_returncontract_valid_index_255@21fb11c8.

Generate fixtures for these test cases for Osaka with:

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

Deploy container index 255.

Source code in tests/osaka/eip7692_eof_v1/eip7620_eof_create/test_returncontract.py
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
def test_returncontract_valid_index_255(
    eof_test: EOFTestFiller,
):
    """Deploy container index 255."""
    eof_test(
        container_kind=ContainerKind.INITCODE,
        container=Container(
            sections=[
                Section.Code(
                    sum((Op.RJUMPI[6](0) + Op.RETURNCONTRACT[i](0, 0)) for i in range(256))
                    + Op.REVERT(0, 0),
                    max_stack_height=2,
                )
            ]
            + [Section.Container(container=Container(sections=[Section.Code(code=Op.INVALID)]))]
            * 256
        ),
    )

Parametrized Test Cases

This test case is only parametrized by fork.

Test ID (Abbreviated)
...fork_Osaka-eof_test