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