test_sstore_restoration_cross_frame()¶
Documentation for tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_sstore.py::test_sstore_restoration_cross_frame@c74f1a67.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_sstore.py::test_sstore_restoration_cross_frame --fork Amsterdam
Verify restoration refund across frames for CALL / CALLCODE / DELEGATECALL.
Callee performs the full 0 to x to 0 cycle within its call. For CALL the slot lives in callee's storage; for CALLCODE/DELEGATECALL it lives in caller's. The reservoir is tx-level, so the refund applies regardless of storage ownership. Net block state gas is zero.
Source code in tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_sstore.py
730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 | |
Parametrized Test Cases¶
This test generates 3 parametrized test cases across 1 fork.