core/vm: don't discard error

This commit is contained in:
Marius van der Wijden 2026-07-10 11:36:31 +02:00
parent 3462394cb5
commit ea650e7d40

View file

@ -524,7 +524,7 @@ func (evm *EVM) create(caller common.Address, code []byte, gas GasBudget, value
// Since Amsterdam, the precheck has been folded into the parent frame // Since Amsterdam, the precheck has been folded into the parent frame
// due to account-creation determination, so skip the duplicate check here. // due to account-creation determination, so skip the duplicate check here.
if !evm.chainRules.IsAmsterdam { if !evm.chainRules.IsAmsterdam {
evm.createFramePreCheck(caller, value) err = evm.createFramePreCheck(caller, value)
} }
if evm.Config.Tracer != nil { if evm.Config.Tracer != nil {
evm.captureBegin(evm.depth, typ, caller, address, code, gas, value.ToBig()) evm.captureBegin(evm.depth, typ, caller, address, code, gas, value.ToBig())