From f5a68a40bfba218d4be252488826e1d46778fd01 Mon Sep 17 00:00:00 2001 From: Guillaume Ballet Date: Sun, 24 Nov 2019 21:06:06 +0100 Subject: [PATCH] eth/tracers: fix staticcheck warnings (#20379) --- eth/tracers/tracer.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eth/tracers/tracer.go b/eth/tracers/tracer.go index 724c5443a..63d38ed32 100644 --- a/eth/tracers/tracer.go +++ b/eth/tracers/tracer.go @@ -419,17 +419,17 @@ func New(code string) (*Tracer, error) { tracer.tracerObject = 0 // yeah, nice, eval can't return the index itself 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() 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() 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()