test_dupn_jump_to_valid_immediate_fails()¶
Documentation for tests/amsterdam/eip8024_dupn_swapn_exchange/test_dupn.py::test_dupn_jump_to_valid_immediate_fails@622620d8.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip8024_dupn_swapn_exchange/test_dupn.py::test_dupn_jump_to_valid_immediate_fails --fork Amsterdam
Test jumping to a valid immediate byte fails.
Bytecode: PUSH1(4) JUMP DUPN[0x00] Hex: 6004 56 e6 00 Position 4 contains 0x00 which is a VALID immediate for DUPN. 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_dupn.py
324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 | |
Parametrized Test Cases¶
This test generates 1 parametrized test case across 1 fork.