Skip to content

Test RETURNCODE

Documentation for tests/osaka/eip7692_eof_v1/eip7620_eof_create/test_returncode.py@b48d1dc8.

Generate fixtures for these test cases for Osaka with:

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

Tests for RETURNCODE instruction validation.

Test Functions Overview

Name Type Cases (Osaka) Description
test_returncode_valid_index_0 eof_test 1 Deploy container index 0.
test_returncode_valid_index_1 eof_test 1 Deploy container index 1.
test_returncode_valid_index_255 eof_test 1 Deploy container index 255.
test_returncode_invalid_truncated_immediate eof_test 1 Truncated immediate.
test_returncode_invalid_index_0 eof_test 1 Referring to non-existent container section index 0.
test_returncode_invalid_index_1 eof_test 1 Referring to non-existent container section index 1.
test_returncode_invalid_index_255 eof_test 1 Referring to non-existent container section index 255.
test_returncode_terminating eof_test 1 Unreachable code after RETURNCODE.
test_returncode_memory_expansion state_test 32 Attempts an EOFCREATE with a possibly too-large auxdata. Create either fails due to gas