Skip to content

test_container_multiple_returncontract_references()

Documentation for tests/osaka/eip7692_eof_v1/eip7620_eof_create/test_subcontainer_validation.py::test_container_multiple_returncontract_references@21fb11c8.

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_returncontract_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
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
def test_container_multiple_returncontract_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.RETURNCONTRACT[0](0, 0)
                    + Op.RETURNCONTRACT[0](0, 0)
                ),
                stop_sub_container,
            ],
            kind=ContainerKind.INITCODE,
        ),
    )

Parametrized Test Cases

This test case is only parametrized by fork.

Test ID (Abbreviated)
...fork_Osaka-eof_test