fork | group |
---|---|
Frontier |
Comparison & Bitwise Logic Operations |
Index 1 is top of the stack. See PUSH.
i
: byte offset starting from the most significant byte.x
: 32-byte value.
y
: the indicated byte at the least significant position. If the byte offset is out of range, the result is 0.
* | Input | Output | * | * | Input | Output |
---|---|---|---|---|---|---|
1 |
31 |
0xFF |
* | 1 |
30 |
0xFF |
2 |
0xFF |
* | 2 |
0xFF00 |
The state changes done by the current context are reverted in those cases:
- Not enough gas.
- Not enough values on the stack.