Test Fork Transition¶
Documentation for tests/amsterdam/eip7954_increase_max_contract_size/test_fork_transition.py@9c2813ee.
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 | 1 | Ensure the new max code size limit activates at the fork boundary. |
test_max_code_size_via_create_fork_transition |
blockchain_test | 2 | Ensure the new max code size limit activates at the fork via opcodes. |
test_max_code_size_with_max_initcode_fork_transition |
blockchain_test | 1 | Ensure max code + max initcode activates at the fork boundary. |
test_max_initcode_size_fork_transition |
blockchain_test | 1 | Ensure the new max initcode size limit activates exactly at the fork. |
test_max_initcode_size_via_create_fork_transition |
blockchain_test | 2 | Ensure the new max initcode size limit activates at fork via opcodes. |
test_parent_max_code_size_across_fork |
blockchain_test | 1 | Ensure previous max code size works after transition. |