core/vm: implement updates to modexp gas cost changes in eip 7883

This commit is contained in:
Jared Wasinger 2025-06-12 10:17:03 +02:00
parent c7e6c08e54
commit 7f563197fd

View file

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