test_extcodehash_max_code_size()¶
Documentation for tests/constantinople/eip1052_extcodehash/test_extcodehash.py::test_extcodehash_max_code_size@9c2813ee.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/constantinople/eip1052_extcodehash/test_extcodehash.py::test_extcodehash_max_code_size --fork Amsterdam
Test EXTCODEHASH/EXTCODESIZE of a contract near max code size.
Deploy a contract with MAXCODESIZE or MAXCODESIZE-1 bytes of code filled with a single byte pattern and verify that EXTCODEHASH and EXTCODESIZE return the correct values.
Source code in tests/constantinople/eip1052_extcodehash/test_extcodehash.py
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 | |
Parametrized Test Cases¶
This test generates 4 parametrized test cases across 10 forks.