test_calldata_floor_with_sstore()¶
Documentation for tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_calldata_floor.py::test_calldata_floor_with_sstore@622620d8.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_calldata_floor.py::test_calldata_floor_with_sstore --fork Amsterdam
Test calldata floor does not affect state gas charging.
The calldata is sized to the exact length at which the floor overtakes the SSTORE's state gas, so the two variants sit one byte either side of that boundary. The block bills the state charge below it and the floor above it, while the sender's bill stays the sum of both dimensions throughout: the floor never discounts the state gas, and the state gas never discounts the floor.
Source code in tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_calldata_floor.py
59 60 61 62 63 64 65 66 67 68 69 70 71 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 121 122 123 124 125 126 127 128 | |
Parametrized Test Cases¶
This test generates 2 parametrized test cases across 1 fork.