This repository was archived by the owner on Sep 8, 2025. It is now read-only.
Commit e93255c
committed
eth/precompiles/modexp: fix complexity calc (length^2, not 2^2).
There was a typo in the "complexity" calculation function, a
special interim value from EIP-198 used to determine total gas
use.
The code path was never previously exercised.
NOTE: previous-commit "fixtures bump" was to commit:
9b1f07c58a70d1b17c4489c49eb9bebf4a27d2901 parent b11a7b8 commit e93255c
2 files changed
+1
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | 141 | | |
147 | 142 | | |
148 | 143 | | |
| |||
0 commit comments