Skip to content

Test EOFCREATE

Documentation for tests/osaka/eip7692_eof_v1/eip7620_eof_create/test_eofcreate.py@0ed27a0e.

Generate fixtures for these test cases for Osaka with:

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

Test good and bad EOFCREATE cases

Test Functions Overview

Name Type Cases (Osaka) Description
test_simple_eofcreate state_test 1 Verifies a simple EOFCREATE case
test_eofcreate_then_call state_test 1 Verifies a simple EOFCREATE case, and then calls the deployed contract
test_auxdata_variations state_test 6 Verifies that auxdata bytes are correctly handled in RETURNCONTRACT
test_calldata state_test 1 Verifies CALLDATA passing through EOFCREATE
test_eofcreate_in_initcode state_test 1 Verifies an EOFCREATE occuring within initcode creates that contract
test_eofcreate_in_initcode_reverts state_test 1 Verifies an EOFCREATE occuring in an initcode is rolled back when the initcode reverts
test_return_data_cleared state_test 1 Verifies the return data is not re-used from a extcall but is cleared upon eofcreate
test_address_collision state_test 1 Verifies a simple EOFCREATE case
test_eofcreate_revert_eof_returndata state_test 1 Verifies the return data is not being deployed, even if happens to be valid EOF
test_eofcreate_invalid_index eof_test 2 Referring to non-existent container section index
test_eofcreate_context state_test 4 Test EOFCREATE's initcode context instructions