Skip to content

test_container_multiple_eofcreate_references()

Documentation for tests/prague/eip7692_eof_v1/eip7620_eof_create/test_subcontainer_validation.py::test_container_multiple_eofcreate_references@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_subcontainer_validation.py::test_container_multiple_eofcreate_references --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_subcontainer_validation.py::test_container_multiple_eofcreate_references --until=PragueEIP7692

Test multiple references to the same subcontainer from an EOFCREATE operation

Source code in tests/prague/eip7692_eof_v1/eip7620_eof_create/test_subcontainer_validation.py
467
468
469
470
471
472
473
474
475
476
477
478
def test_container_multiple_eofcreate_references(eof_test: EOFTestFiller):
    """Test multiple references to the same subcontainer from an EOFCREATE operation"""
    eof_test(
        data=Container(
            sections=[
                Section.Code(
                    code=Op.EOFCREATE[0](0, 0, 0, 0) + Op.EOFCREATE[0](0, 0, 0, 0) + Op.STOP,
                ),
                returncontract_sub_container,
            ],
        ),
    )