fork | group |
---|---|
Constantinople |
Comparison & Bitwise Logic Operations |
Index 1 is top of the stack. See PUSH.
Shift the bits towards the most significant one. The bits moved after the 256th one are discarded, the new bits are set to 0.
shift
: number of bits to shift to the left.value
: 32 bytes to shift.
value << shift
: the shifted value. Ifshift
is bigger than 255, returns 0.
* | Input | Output |
---|---|---|
1 |
1 |
2 |
2 |
1 |
* | Input | Output |
---|---|---|
1 |
4 |
0xF000000000000000000000000000000000000000000000000000000000000000 |
2 |
0xFF00000000000000000000000000000000000000000000000000000000000000 |
The state changes done by the current context are reverted in those cases:
- Not enough gas.
- Not enough values on the stack.