This repository was archived by the owner on Sep 8, 2025. It is now read-only.
Commit 0c12ccf
eth/vm/logic/arithmetic: handle exp(X,0) == 1. (#1217)
* eth/vm/logic/arithmetic: handle exp(X,0) == 1.
Caught by `exp8.json` test (not yet tracked in tests fixture).
Ref:
https://github.com/ethereum/tests/blob/10ab37c095bb87d2e781bcf112b6104912fccb44/VMTests/vmArithmeticTest/exp8.json
Accidentally caught in PR #1181.
* tests/opcodes: exponentiation: 0^0==1, 0^1==0.1 parent 8752ab5 commit 0c12ccf
File tree
2 files changed
+29
-1
lines changed- eth/vm/logic
- tests/core/opcodes
2 files changed
+29
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
151 | 153 | | |
152 | 154 | | |
153 | 155 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
126 | 152 | | |
127 | 153 | | |
128 | 154 | | |
| |||
0 commit comments