Skip to content

Commit d80094f

Browse files
core/vm: triple modexp cost post-cancun (#32231)
https://github.com/ethereum/EIPs/pull/9969/files
1 parent f37fe67 commit d80094f

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)