Skip to content

Test TXCREATE

Documentation for tests/osaka/eip7692_eof_v1/eip7873_tx_create/[email protected].

Generate fixtures for these test cases for Osaka with:

fill -v tests/osaka/eip7692_eof_v1/eip7873_tx_create/test_txcreate.py --fork Osaka

Test good TXCREATE cases.

Test Functions Overview

Name Type Cases (Osaka) Description
test_simple_txcreate state_test 6 Verifies a simple TXCREATE case.
test_txcreate_then_dataload state_test 1 Verifies that a contract returned with auxdata does not overwrite the parent data.
test_txcreate_then_call state_test 2 Verifies a simple TXCREATE case, and then calls the deployed contract.
test_auxdata_variations state_test 12 Verifies that auxdata bytes are correctly handled in RETURNCODE.
test_calldata state_test 2 Verifies CALLDATA passing through TXCREATE.
test_txcreate_in_initcode state_test 8 Verifies an TXCREATE occuring within initcode creates that contract.
test_return_data_cleared state_test 2 Verifies the return data is not re-used from a extcall but is cleared upon TXCREATE.
test_address_collision state_test 2 Tests address collision.
test_txcreate_revert_eof_returndata state_test 2 Verifies the return data is not being deployed, even if happens to be valid EOF.
test_txcreate_context state_test 12 Test TXCREATE's initcode context instructions.
test_txcreate_memory_context state_test 2 Verifies an TXCREATE frame enjoys a separate EVM memory from its caller frame.
test_short_data_subcontainer state_test 2 Deploy a subcontainer where the data is "short" and filled by deployment code.