test_bal_7702_cross_tx_delegation_then_call()¶
Documentation for tests/amsterdam/eip7928_block_level_access_lists/test_block_access_lists_eip7702.py::test_bal_7702_cross_tx_delegation_then_call@9c2813ee.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip7928_block_level_access_lists/test_block_access_lists_eip7702.py::test_bal_7702_cross_tx_delegation_then_call --fork Amsterdam
Verify clients apply Tx1's EIP-7702 delegation before later txs CALL
the now-delegated EOA. Tx1 installs a delegation designator on alice
pointing to a contract that increments slot 0. Tx2 and Tx3 CALL alice,
so each later tx must observe both the installed code (Tx1) and the
prior increment (the immediately preceding tx) for the final slot 0
to read 2. A client that parallelizes any tx against pre-block state
would see no code or a stale counter, yielding a different state root.
Source code in tests/amsterdam/eip7928_block_level_access_lists/test_block_access_lists_eip7702.py
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 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 | |
Parametrized Test Cases¶
This test generates 1 parametrized test case across 1 fork.