core/vm: implement updates to modexp gas cost changes in EIP-7883 (#32015)

Implements the updated gas cost changes introduced in
5cdd75157d
This commit is contained in:
jwasinger 2025-06-13 14:01:50 +02:00 committed by GitHub
parent ece4b48d84
commit e5da461f29
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -459,6 +459,8 @@ func (c *bigModExp) RequiredGas(input []byte) uint64 {
minPrice = 500
if maxLenOver32 {
gas.Add(gas, gas)
} else {
gas = big.NewInt(16)
}
}