fork | group |
---|---|
Frontier |
Stack Memory Storage and Flow Operations |
Index 1 is top of the stack. See PUSH.
offset
: offset in the memory in bytes.
value
: the 32 bytes in memory starting at that offset. If it goes beyond its current size (see MSIZE), writes 0s.
Memory |
---|
0x00000000000000000000000000000000000000000000000000000000000000FF |
* | Input | Output | * | * | Input | Output |
---|---|---|---|---|---|---|
1 |
0 |
0xFF |
* | 1 |
1 |
0xFF00 |
The state changes done by the current context are reverted in those cases:
- Not enough gas.
- Not enough values on the stack.