Skip to content

Test Max Code Size

Documentation for tests/amsterdam/eip7954_increase_max_contract_size/test_max_code_size.py@2119b382.

Generate fixtures for these test cases for Amsterdam with:

fill -v tests/amsterdam/eip7954_increase_max_contract_size/test_max_code_size.py --fork Amsterdam

Test Functions Overview

Name Type Cases (Amsterdam) Description
test_max_code_size state_test 2 Ensure the new max code size boundary is enforced.
test_max_code_size_deposit_gas state_test 2 Ensure code deposit gas is charged correctly at the new max.
test_max_code_size_external_opcodes state_test 1 Ensure external code opcodes work with the new max contract size.
test_max_code_size_high_jumpdest state_test 2 Ensure jump destination validity is enforced past the old size limits.
test_max_code_size_jumpdest_in_immediate state_test 4 Ensure jumpdest analysis classifies a 0x5B immediate byte correctly at
test_max_code_size_self_opcodes state_test 1 Ensure self code opcodes work with the new max contract size.
test_max_code_size_via_create state_test 4 Ensure the new max code size boundary is enforced via create opcodes.
test_max_code_size_with_max_initcode state_test 1 Ensure max-size code deploys when initcode is also at max size.
test_warm_after_failed_create_over_max_code_size state_test 2 Verify the would-be contract address is warm after a CREATE that fails