Skip to content

Test TXCREATE Failures

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_failures.py --fork Osaka

Test bad TXCREATE cases.

Test Functions Overview

Name Type Cases (Osaka) Description
test_initcode_revert state_test 4 Verifies proper handling of REVERT in initcode.
test_txcreate_invalid_hash state_test 6 Verifies proper handling of REVERT in initcode.
test_initcode_aborts state_test 2 Verifies correct handling of a halt in EOF initcode.
test_txcreate_deploy_sizes state_test 10 Verifies a mix of runtime contract sizes mixing success and multiple size failure modes.
test_auxdata_size_failures state_test 12 Exercises a number of auxdata size violations, and one maxcode success.
test_txcreate_insufficient_stipend state_test 4 Exercises an TXCREATE that fails because the calling account does not have enough ether to
test_insufficient_initcode_gas state_test 2 Excercises an TXCREATE when there is not enough gas for the constant charge.
test_insufficient_gas_memory_expansion state_test 2 Exercises TXCREATE when the memory for auxdata has not been expanded but is requested.
test_insufficient_returncode_auxdata_gas state_test 2 Exercises a RETURNCODE when there is not enough gas for the initcode charge.
test_static_flag_txcreate state_test 16 Verifies correct handling of the static call flag with TXCREATE.
test_eof_txcreate_msg_depth state_test 4 Test TXCREATE handles msg depth limit correctly (1024).
test_reentrant_txcreate state_test 2 Verifies a reentrant TXCREATE case, where EIP-161 prevents conflict via nonce bump.
test_invalid_container_deployment state_test 18 Verify contract is not deployed when an invalid container deployment is attempted.