diff --git a/core/vm/contracts.go b/core/vm/contracts.go index 3d10174d1e63..ebfaa24b1650 100644 --- a/core/vm/contracts.go +++ b/core/vm/contracts.go @@ -438,7 +438,9 @@ func (c *bigModExp) RequiredGas(input []byte) uint64 { gas.Mul(gas, adjExpLen) } // 2. Different divisor (`GQUADDIVISOR`) (3) - gas.Div(gas, big3) + if !c.eip7883 { + gas.Div(gas, big3) + } if gas.BitLen() > 64 { return math.MaxUint64 }