Skip to content

test_container_both_kinds_same_sub()

Documentation for tests/osaka/eip7692_eof_v1/eip7620_eof_create/test_subcontainer_validation.py::test_container_both_kinds_same_sub@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_both_kinds_same_sub --fork Osaka

Test subcontainer conflicts (both EOFCREATE and RETURNCONTRACT Reference).

Source code in tests/osaka/eip7692_eof_v1/eip7620_eof_create/test_subcontainer_validation.py
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
def test_container_both_kinds_same_sub(eof_test: EOFTestFiller):
    """Test subcontainer conflicts (both EOFCREATE and RETURNCONTRACT Reference)."""
    eof_test(
        container=Container(
            sections=[
                Section.Code(
                    code=Op.EOFCREATE[0](0, 0, 0, 0) + Op.JUMPF[1],
                ),
                Section.Code(
                    code=Op.RETURNCONTRACT[0](0, 0),
                ),
                revert_sub_container,
            ],
        ),
        expect_exception=EOFException.INCOMPATIBLE_CONTAINER_KIND,
    )

Parametrized Test Cases

This test case is only parametrized by fork.

Test ID (Abbreviated)
...fork_Osaka-eof_test