test_extcodecopy_nonzero_composes_additively()¶
Documentation for tests/amsterdam/eip8038_state_access_gas_cost_increase/test_ext_code_opcodes_gas.py::test_extcodecopy_nonzero_composes_additively@2867859a.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip8038_state_access_gas_cost_increase/test_ext_code_opcodes_gas.py::test_extcodecopy_nonzero_composes_additively --fork Amsterdam
Verify the EIP-8038 EXTCODECOPY surcharge composes additively.
With a non-zero copy size, EXTCODECOPY charges the account-access
cost, the EIP-8038 code-read WARM_ACCESS surcharge, the EIP-150
per-word copy cost (OPCODE_COPY_PER_WORD per word, driven by the
copied data size), and the memory-expansion cost. The surcharge is a
flat add-on that does not interact with the copy or memory terms, so
the measured gas must equal the sum of all four components.
Source code in tests/amsterdam/eip8038_state_access_gas_cost_increase/test_ext_code_opcodes_gas.py
140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 | |
Parametrized Test Cases¶
This test generates 4 parametrized test cases across 1 fork.