Skip to content

Commit 2eb1ba4

Browse files
authored
Update EIP-7883: Change modexp gas calculation (#1318)
1 parent 07bd1f1 commit 2eb1ba4

File tree

1 file changed

+0
-3
lines changed
  • src/ethereum/osaka/vm/precompiled_contracts

1 file changed

+0
-3
lines changed

src/ethereum/osaka/vm/precompiled_contracts/modexp.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919
from ...vm.gas import charge_gas
2020
from ..memory import buffer_read
2121

22-
GQUADDIVISOR = Uint(3)
23-
2422

2523
def modexp(evm: Evm) -> None:
2624
"""
@@ -177,5 +175,4 @@ def gas_cost(
177175
multiplication_complexity = complexity(base_length, modulus_length)
178176
iteration_count = iterations(exponent_length, exponent_head)
179177
cost = multiplication_complexity * iteration_count
180-
cost //= GQUADDIVISOR
181178
return max(Uint(500), cost)

0 commit comments

Comments
 (0)