test_extcodehash_changed_account()¶
Documentation for tests/constantinople/eip1052_extcodehash/test_extcodehash.py::test_extcodehash_changed_account@b47f0253.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/constantinople/eip1052_extcodehash/test_extcodehash.py::test_extcodehash_changed_account --fork Amsterdam
Test EXTCODEHASH/EXTCODESIZE before and after changing account state.
A secondary contract has its nonce incremented (via CREATE), balance increased (via CALL value), and storage modified (via SSTORE) when called. The caller verifies that EXTCODEHASH and EXTCODESIZE return the same values before and after these mutations.
Source code in tests/constantinople/eip1052_extcodehash/test_extcodehash.py
850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 | |
Parametrized Test Cases¶
This test generates 1 parametrized test case across 10 forks.