test_sstore_clear_grants_refund()¶
Documentation for tests/amsterdam/eip8038_state_access_gas_cost_increase/test_sstore_refunds.py::test_sstore_clear_grants_refund@26332146.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip8038_state_access_gas_cost_increase/test_sstore_refunds.py::test_sstore_clear_grants_refund --fork Amsterdam
Clearing a non-zero-original slot grants REFUND_STORAGE_CLEAR.
Enough unrelated gas is burned so the EIP-3529 quotient cap
(gas_used // 5) does not bind, letting the full clear refund be
observed in cumulative_gas_used. The non-zero original means no
EIP-8037 state refund participates.
Source code in tests/amsterdam/eip8038_state_access_gas_cost_increase/test_sstore_refunds.py
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 | |
Parametrized Test Cases¶
This test generates 1 parametrized test case across 1 fork.