test_refund_cap_includes_state_gas()¶
Documentation for tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_pricing.py::test_refund_cap_includes_state_gas@c74f1a67.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_pricing.py::test_refund_cap_includes_state_gas --fork Amsterdam
Test the ⅕ refund cap includes state gas used from gas_left.
When state gas is drawn from gas_left (no reservoir), it counts toward tx_gas_used_before_refund. The ⅕ refund cap applies to the combined total of regular + state gas consumed. This test performs an SSTORE zero-to-nonzero-to-zero sequence to generate a refund and verifies the transaction succeeds.
Source code in tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_pricing.py
209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 | |
Parametrized Test Cases¶
This test generates 1 parametrized test case across 1 fork.