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 EIP-3860: Limit and meter initcode.
Tests ported from: - ethereum/tests/pull/990 - ethereum/tests/pull/1012
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. |