mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-03 01:27:38 +00:00
eth/tracers: fix staticcheck warnings (#20379)
This commit is contained in:
parent
b4124c24ca
commit
bf0a416717
@ -419,17 +419,17 @@ func New(code string) (*Tracer, error) {
|
|||||||
tracer.tracerObject = 0 // yeah, nice, eval can't return the index itself
|
tracer.tracerObject = 0 // yeah, nice, eval can't return the index itself
|
||||||
|
|
||||||
if !tracer.vm.GetPropString(tracer.tracerObject, "step") {
|
if !tracer.vm.GetPropString(tracer.tracerObject, "step") {
|
||||||
return nil, fmt.Errorf("Trace object must expose a function step()")
|
return nil, fmt.Errorf("trace object must expose a function step()")
|
||||||
}
|
}
|
||||||
tracer.vm.Pop()
|
tracer.vm.Pop()
|
||||||
|
|
||||||
if !tracer.vm.GetPropString(tracer.tracerObject, "fault") {
|
if !tracer.vm.GetPropString(tracer.tracerObject, "fault") {
|
||||||
return nil, fmt.Errorf("Trace object must expose a function fault()")
|
return nil, fmt.Errorf("trace object must expose a function fault()")
|
||||||
}
|
}
|
||||||
tracer.vm.Pop()
|
tracer.vm.Pop()
|
||||||
|
|
||||||
if !tracer.vm.GetPropString(tracer.tracerObject, "result") {
|
if !tracer.vm.GetPropString(tracer.tracerObject, "result") {
|
||||||
return nil, fmt.Errorf("Trace object must expose a function result()")
|
return nil, fmt.Errorf("trace object must expose a function result()")
|
||||||
}
|
}
|
||||||
tracer.vm.Pop()
|
tracer.vm.Pop()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user