test_jumpdest_in_immediate_at_fork_transition()¶
Documentation for tests/amsterdam/eip8024_dupn_swapn_exchange/test_fork_transition.py::test_jumpdest_in_immediate_at_fork_transition@26332146.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip8024_dupn_swapn_exchange/test_fork_transition.py::test_jumpdest_in_immediate_at_fork_transition --fork Amsterdam
Test a JUMPDEST inside an EIP-8024 immediate across the transition.
JUMPDEST analysis is unchanged by EIP-8024, so the 0x5b byte in the opcode's would-be immediate is a valid jump destination both before and after the fork. The jump skips the opcode byte itself, so every block stores the marker at its NUMBER-keyed slot.
Source code in tests/amsterdam/eip8024_dupn_swapn_exchange/test_fork_transition.py
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 | |
Parametrized Test Cases¶
This test generates 3 parametrized test cases across 1 fork.