test_delegatecall_reservoir_passing()¶
Documentation for tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_call.py::test_delegatecall_reservoir_passing@622620d8.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_call.py::test_delegatecall_reservoir_passing --fork Amsterdam
Test DELEGATECALL passes full reservoir to child.
DELEGATECALL runs child code in the caller's storage context. The child's SSTORE writes to the parent's storage using state gas from the reservoir, emptying it. A probe handed only its SSTORE's execution cost then fails, proving the draw was real.
Source code in tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_call.py
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 955 956 957 958 959 960 961 962 | |
Parametrized Test Cases¶
This test generates 1 parametrized test case across 1 fork.