Skip to content

Test Initcode

Documentation for tests/shanghai/eip3860_initcode/test_initcode.py@8db70f93.

Generate fixtures for these test cases for Amsterdam with:

fill -v tests/shanghai/eip3860_initcode/test_initcode.py --fork Amsterdam

Test Functions Overview

Name Type Cases (Amsterdam) Description
test_gas_usage state_test 30 Test transaction and contract creation using different gas limits.
test_create_opcode_initcode state_test 20 Test contract creation with valid and invalid initcode lengths.
test_contract_creating_tx state_test 4 Test creating a contract with initcode that is on/over the allowed limit.
test_create2_oversized_initcode_with_insufficient_balance state_test 2 Test CREATE2 with oversized initcode and insufficient balance.