| fork | Frontier |
|---|---|
| group | Stop and Arithmetic Operations |
Index 1 is top of the stack. See PUSH.
a: first integer value to add.b: second integer value to add.
a + b: integer result of the addition modulo 2256.
| * | Input | Output | * | * | Input | Output |
|---|---|---|---|---|---|---|
1 |
10 |
20 |
* | 1 |
0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF |
0 |
2 |
10 |
* | 2 |
1 |
The state changes done by the current context are reverted in those cases:
- Not enough gas.
- Not enough values on the stack.