mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-21 04:06:44 +00:00
core: fix remaining spec issues
This commit is contained in:
parent
ac7f10e1c1
commit
361c909667
1 changed files with 0 additions and 5 deletions
|
|
@ -415,11 +415,6 @@ func makeCallVariantGasCallEIP7702(intrinsicFunc intrinsicGasFunc, coldCost uint
|
||||||
if !contract.chargeRegular(eip7702Cost, evm.Config.Tracer, tracing.GasChangeCallStorageColdAccess) {
|
if !contract.chargeRegular(eip7702Cost, evm.Config.Tracer, tracing.GasChangeCallStorageColdAccess) {
|
||||||
return GasCosts{}, ErrOutOfGas
|
return GasCosts{}, ErrOutOfGas
|
||||||
}
|
}
|
||||||
// The spec checks the delegation cost together with the memory
|
|
||||||
// expansion and transfer costs before reading the delegated account.
|
|
||||||
// Since intrinsicCost is only checked (not charged) above, re-check it
|
|
||||||
// against the remaining gas so the delegated address is not recorded
|
|
||||||
// in the block access list when the combined costs are unaffordable.
|
|
||||||
if contract.Gas.RegularGas < intrinsicCost {
|
if contract.Gas.RegularGas < intrinsicCost {
|
||||||
return GasCosts{}, ErrOutOfGas
|
return GasCosts{}, ErrOutOfGas
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue