test_extcodehash_new_account()¶
Documentation for tests/constantinople/eip1052_extcodehash/test_extcodehash.py::test_extcodehash_new_account@9c2813ee.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/constantinople/eip1052_extcodehash/test_extcodehash.py::test_extcodehash_new_account --fork Amsterdam
Test EXTCODEHASH/EXTCODESIZE of a contract created within the same tx.
Uses CREATE/CREATE2 to deploy a contract, then verifies that EXTCODEHASH and EXTCODESIZE reflect the newly deployed code.
Source code in tests/constantinople/eip1052_extcodehash/test_extcodehash.py
602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 | |
Parametrized Test Cases¶
This test generates 4 parametrized test cases across 10 forks.