test_extcodehash_in_init_code()¶
Documentation for tests/constantinople/eip1052_extcodehash/test_extcodehash.py::test_extcodehash_in_init_code@b314d18e.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/constantinople/eip1052_extcodehash/test_extcodehash.py::test_extcodehash_in_init_code --fork Amsterdam
Test EXTCODEHASH/EXTCODESIZE of an external account during init code.
The init code queries EXTCODEHASH and EXTCODESIZE of a pre-existing contract and stores the results. With a create transaction the checks run in the top-level init code; with CREATE/CREATE2 they run in a contract-initiated creation.
Source code in tests/constantinople/eip1052_extcodehash/test_extcodehash.py
913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 | |
Parametrized Test Cases¶
This test generates 3 parametrized test cases across 10 forks.