test_extcodehash_empty_account()¶
Documentation for tests/amsterdam/eip8038_state_access_gas_cost_increase/test_ext_code_opcodes_gas.py::test_extcodehash_empty_account@26332146.
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_extcodehash_empty_account --fork Amsterdam
Verify EXTCODEHASH of an empty account is priced without surcharge.
EXTCODEHASH reads only the account leaf, so EIP-8038 adds no
code-read surcharge: the cost is exactly COLD_ACCOUNT_ACCESS (cold)
or WARM_ACCESS (warm) regardless of the target being empty. The
returned hash of an empty/non-existent account is 0.
Source code in tests/amsterdam/eip8038_state_access_gas_cost_increase/test_ext_code_opcodes_gas.py
209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 | |
Parametrized Test Cases¶
This test generates 2 parametrized test cases across 1 fork.