test_exchange_gas_cost_boundary()¶
Documentation for tests/amsterdam/eip8024_dupn_swapn_exchange/test_exchange.py::test_exchange_gas_cost_boundary@2119b382.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip8024_dupn_swapn_exchange/test_exchange.py::test_exchange_gas_cost_boundary --fork Amsterdam
Test EXCHANGE at the gas cost boundary.
EXCHANGE 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 EXCHANGE 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_exchange.py
249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 | |
Parametrized Test Cases¶
This test generates 5 parametrized test cases across 1 fork.