From c059d5343592a5b57bfeece8187f45b863674fd7 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Mon, 8 Sep 2025 12:35:24 +0200 Subject: [PATCH] core/vm: rename function --- core/vm/contracts.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/vm/contracts.go b/core/vm/contracts.go index c491b9fdf4..a06b0d09ca 100644 --- a/core/vm/contracts.go +++ b/core/vm/contracts.go @@ -480,8 +480,8 @@ func modexpIterationCount(expLen uint64, expHead uint256.Int, multiplier uint64) return max(iterationCount, 1) } -// byzantiumGasCalc calculates the gas cost for the modexp precompile using Byzantium rules. -func byzantiumGasCalc(baseLen, expLen, modLen uint64, expHead uint256.Int) uint64 { +// byzantiumModexpGas calculates the gas cost for the modexp precompile using Byzantium rules. +func byzantiumModexpGas(baseLen, expLen, modLen uint64, expHead uint256.Int) uint64 { const ( multiplier = 8 divisor = 20 @@ -595,7 +595,7 @@ func (c *bigModExp) RequiredGas(input []byte) uint64 { } else if c.eip2565 { return berlinModexpGas(baseLen, expLen, modLen, expHead) } else { - return byzantiumGasCalc(baseLen, expLen, modLen, expHead) + return byzantiumModexpGas(baseLen, expLen, modLen, expHead) } }