test_dupn_gas_cost_boundary()¶
Documentation for tests/amsterdam/eip8024_dupn_swapn_exchange/test_dupn.py::test_dupn_gas_cost_boundary@c74f1a67.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip8024_dupn_swapn_exchange/test_dupn.py::test_dupn_gas_cost_boundary --fork Amsterdam
Test DUPN at the gas cost boundary.
DUPN is invoked in a callee that receives exactly its execution cost
plus gas_cost_delta. The caller records the CALL result: a negative
delta starves DUPN of its base gas (3) and the sub-call runs out of
gas (result 0); a zero or positive delta succeeds (result 1).
Source code in tests/amsterdam/eip8024_dupn_swapn_exchange/test_dupn.py
147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 | |
Parametrized Test Cases¶
This test generates 5 parametrized test cases across 1 fork.