Skip to content

Commit 3291c0b

Browse files
MariusVanDerWijdenhowjmay
authored andcommitted
1 parent bf350a9 commit 3291c0b

File tree

2 files changed

+16
-14
lines changed

2 files changed

+16
-14
lines changed

core/vm/contracts.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,9 @@ func (c *bigModExp) RequiredGas(input []byte) uint64 {
477477
gas.Mul(gas, adjExpLen)
478478
}
479479
// 2. Different divisor (`GQUADDIVISOR`) (3)
480-
gas.Div(gas, big3)
480+
if !c.eip7883 {
481+
gas.Div(gas, big3)
482+
}
481483
if gas.BitLen() > 64 {
482484
return math.MaxUint64
483485
}

0 commit comments

Comments
 (0)