test_extcodehash_codeless_with_storage()¶
Documentation for tests/constantinople/eip1052_extcodehash/test_extcodehash.py::test_extcodehash_codeless_with_storage@9c2813ee.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/constantinople/eip1052_extcodehash/test_extcodehash.py::test_extcodehash_codeless_with_storage --fork Amsterdam
Test EXTCODEHASH/EXTCODESIZE of a codeless account that has storage.
All three variants are non-empty per EIP-161 (non-zero balance or nonce), so EXTCODEHASH returns keccak256("") and EXTCODESIZE returns 0. Storage is not part of the EIP-161 emptiness check.
Source code in tests/constantinople/eip1052_extcodehash/test_extcodehash.py
366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 | |
Parametrized Test Cases¶
This test generates 3 parametrized test cases across 10 forks.