test_swapn_invalid_immediate_aborts()¶
Documentation for tests/amsterdam/eip8024_dupn_swapn_exchange/test_swapn.py::test_swapn_invalid_immediate_aborts@622620d8.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip8024_dupn_swapn_exchange/test_swapn.py::test_swapn_invalid_immediate_aborts --fork Amsterdam
Test SWAPN with invalid immediate values (90 < x < 128) aborts.
Per EIP-8024, immediate values in range [91, 127] (0x5b-0x7f) are invalid because they correspond to JUMPDEST (0x5b) and PUSH opcodes (0x60-0x7f). Attempting to execute SWAPN with these immediates should abort.
Source code in tests/amsterdam/eip8024_dupn_swapn_exchange/test_swapn.py
298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 | |
Parametrized Test Cases¶
This test generates 37 parametrized test cases across 1 fork.