From e5da461f29d36d8c8a783325d688e89859fa1eae Mon Sep 17 00:00:00 2001 From: jwasinger Date: Fri, 13 Jun 2025 14:01:50 +0200 Subject: [PATCH] core/vm: implement updates to modexp gas cost changes in EIP-7883 (#32015) Implements the updated gas cost changes introduced in https://github.com/ethereum/EIPs/commit/5cdd75157d78522bde8dc58977717c14cd7f2789 --- core/vm/contracts.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/vm/contracts.go b/core/vm/contracts.go index 8dd7b9f056..92a4e7d016 100644 --- a/core/vm/contracts.go +++ b/core/vm/contracts.go @@ -459,6 +459,8 @@ func (c *bigModExp) RequiredGas(input []byte) uint64 { minPrice = 500 if maxLenOver32 { gas.Add(gas, gas) + } else { + gas = big.NewInt(16) } }