Skip to content

test_container_multiple_returncode_references()

Documentation for tests/osaka/eip7692_eof_v1/eip7620_eof_create/test_subcontainer_validation.py::test_container_multiple_returncode_references@bc691d13.

Generate fixtures for these test cases for Osaka with:

fill -v tests/osaka/eip7692_eof_v1/eip7620_eof_create/test_subcontainer_validation.py::test_container_multiple_returncode_references --fork Osaka

Test multiple references to the same subcontainer from a RETURNCONTACT operation.

Source code in tests/osaka/eip7692_eof_v1/eip7620_eof_create/test_subcontainer_validation.py
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
def test_container_multiple_returncode_references(eof_test: EOFTestFiller):
    """Test multiple references to the same subcontainer from a RETURNCONTACT operation."""
    eof_test(
        container=Container(
            sections=[
                Section.Code(
                    code=Op.PUSH0
                    + Op.CALLDATALOAD
                    + Op.RJUMPI[6]
                    + Op.RETURNCODE[0](0, 0)
                    + Op.RETURNCODE[0](0, 0)
                ),
                stop_sub_container,
            ],
            kind=ContainerKind.INITCODE,
        ),
    )

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