test_swapn_jump_to_valid_immediate_fails()¶
Documentation for tests/amsterdam/eip8024_dupn_swapn_exchange/test_swapn.py::test_swapn_jump_to_valid_immediate_fails@622620d8.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip8024_dupn_swapn_exchange/test_swapn.py::test_swapn_jump_to_valid_immediate_fails --fork Amsterdam
Test jumping to a valid immediate byte fails.
Bytecode: PUSH1(4) JUMP SWAPN[0x00] Hex: 6004 56 e7 00 Position 4 contains 0x00 which is a VALID immediate for SWAPN. JUMPDEST analysis is unchanged by EIP-8024: position 4 holds 0x00, not 0x5b, so it is not a valid jump target and the jump fails.
Source code in tests/amsterdam/eip8024_dupn_swapn_exchange/test_swapn.py
425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 | |
Parametrized Test Cases¶
This test generates 1 parametrized test case across 1 fork.