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
: 1-byte value to write in the memory (the least significant byte of the 32-byte stack value).
* | Input 1 | * | * | Input 2 |
---|---|---|---|---|
1 |
0 |
* | 1 |
1 |
2 |
0xFFFF |
* | 2 |
0xFF |
Memory before |
---|
0 |
Memory after input 1 |
---|
0xFF |
Memory after input 1 then 2 |
---|
0xFFFF |
The state changes done by the current context are reverted in those cases:
- Not enough gas.
- Not enough values on the stack.