Skip to content

Test RETURNCONTRACT

Documentation for tests/osaka/eip7692_eof_v1/eip7620_eof_create/test_returncontract.py@49a16fac.

Generate fixtures for these test cases for Osaka with:

fill -v tests/osaka/eip7692_eof_v1/eip7620_eof_create/test_returncontract.py --fork Osaka

Tests for RETURNCONTRACT instruction validation.

Test Functions Overview

Name Type Cases (Osaka) Description
test_returncontract_valid_index_0 eof_test 1 Deploy container index 0.
test_returncontract_valid_index_1 eof_test 1 Deploy container index 1.
test_returncontract_valid_index_255 eof_test 1 Deploy container index 255.
test_returncontract_invalid_truncated_immediate eof_test 1 Truncated immediate.
test_returncontract_invalid_index_0 eof_test 1 Referring to non-existent container section index 0.
test_returncontract_invalid_index_1 eof_test 1 Referring to non-existent container section index 1.
test_returncontract_invalid_index_255 eof_test 1 Referring to non-existent container section index 255.
test_returncontract_terminating eof_test 1 Unreachable code after RETURNCONTRACT.
test_returncontract_memory_expansion state_test 32 Attempts an EOFCREATE with a possibly too-large auxdata. Create either fails due to gas