test_eip_vector_swapn_swap_with_bottom()¶
Documentation for tests/amsterdam/eip8024_dupn_swapn_exchange/test_eip_vectors.py::test_eip_vector_swapn_swap_with_bottom@9c2813ee.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip8024_dupn_swapn_exchange/test_eip_vectors.py::test_eip_vector_swapn_swap_with_bottom --fork Amsterdam
EIP test vector: 600160008080808080808080808080808080806002e780.
Results in 18 stack items, top=1, bottom=2, rest=0.
PUSH1 1, PUSH1 0, 15x DUP1, PUSH1 2, SWAPN[0x80] - After PUSH1 2: 18 items with top=2, bottom=1 - SWAPN[0x80]: decode_single(0x80)=17, swap pos 1 with pos (17+1)=18 - Result: 18 items, top=1, bottom=2
Source code in tests/amsterdam/eip8024_dupn_swapn_exchange/test_eip_vectors.py
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 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 | |
Parametrized Test Cases¶
This test generates 1 parametrized test case across 1 fork.