test_mixed_valid_and_invalid_auths()¶
Documentation for tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_set_code.py::test_mixed_valid_and_invalid_auths@2119b382.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_set_code.py::test_mixed_valid_and_invalid_auths --fork Amsterdam
Test mixed valid and invalid authorizations under the top-frame model.
Every tuple (valid or invalid) pays the intrinsic
REGULAR_PER_AUTH_BASE_COST. Only the valid authorizations reach
set_delegation and each writes a net-new delegation on an existing
authority, paying the first-write ACCOUNT_WRITE and the top-frame
AUTH_BASE; the invalid (wrong nonce) tuples are skipped and pay
no top-frame charge. The receipt gas is intrinsic_regular +
num_valid * (ACCOUNT_WRITE + AUTH_BASE).
Source code in tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_set_code.py
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 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 | |
Parametrized Test Cases¶
This test generates 3 parametrized test cases across 1 fork.