Skip to content

Test Fork Transition

Documentation for tests/amsterdam/eip7954_increase_max_contract_size/test_fork_transition.py@636b5f17.

Generate fixtures for these test cases for Amsterdam with:

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

Fork transition tests for EIP-7954: Increase Maximum Contract Size.

Tests that the new max code size and initcode size limits activate exactly at the EIP7954 fork boundary (timestamp 15,000).

Test Functions Overview

Name Type Cases (Amsterdam) Description
test_max_code_size_fork_transition blockchain_test 4 Ensure a creation transaction is held to the code size limit active in
test_max_code_size_via_create_fork_transition blockchain_test 8 Ensure a create opcode is held to the code size limit active in its own
test_max_code_size_with_max_initcode_fork_transition blockchain_test 1 Ensure max code + max initcode activates at the fork boundary.
test_max_code_size_with_max_initcode_via_create_fork_transition blockchain_test 2 Ensure both new limits activate together at the fork boundary through
test_max_initcode_size_fork_transition blockchain_test 4 Ensure a creation transaction is validated against the initcode size
test_max_initcode_size_via_create_fork_transition blockchain_test 8 Ensure a create opcode is held to the initcode size limit active in its