Skip to content

test_returncontract_valid_index_1()

Documentation for tests/prague/eip7692_eof_v1/eip7620_eof_create/test_returncontract.py::test_returncontract_valid_index_1@verkle@v0.0.6.

Generate fixtures for these test cases for Pragueeip7692 with:

Pragueeip7692 only:

fill -v tests/prague/eip7692_eof_v1/eip7620_eof_create/test_returncontract.py::test_returncontract_valid_index_1 --fork=PragueEIP7692 --evm-bin=/path/to/evm-tool-dev-version

For all forks up to and including Pragueeip7692:

fill -v tests/prague/eip7692_eof_v1/eip7620_eof_create/test_returncontract.py::test_returncontract_valid_index_1 --until=PragueEIP7692

Deploy container index 1

Source code in tests/prague/eip7692_eof_v1/eip7620_eof_create/test_returncontract.py
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
def test_returncontract_valid_index_1(
    eof_test: EOFTestFiller,
):
    """Deploy container index 1"""
    eof_test(
        container_kind=ContainerKind.INITCODE,
        data=Container(
            sections=[
                Section.Code(
                    code=Op.RJUMPI[6](0) + Op.RETURNCONTRACT[0](0, 0) + Op.RETURNCONTRACT[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)])),
            ],
        ),
    )