From 0b450bcb6d150c2508898c301f81cc9820897ee9 Mon Sep 17 00:00:00 2001 From: CMajeri Date: Wed, 28 Jul 2021 15:21:38 +0200 Subject: [PATCH] Removes useless code --- core/vm/logger.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/core/vm/logger.go b/core/vm/logger.go index f9579d93b4..0ca35a6fa4 100644 --- a/core/vm/logger.go +++ b/core/vm/logger.go @@ -159,13 +159,6 @@ func (l *StructLogger) CaptureStart(env *EVM, from common.Address, to common.Add l.current = &wrappedLog{} } -func errToStr(err error) string { - if err == nil { - return "" - } - return err.Error() -} - // CaptureState logs a new structured log message and pushes it out to the environment // // CaptureState also tracks SLOAD/SSTORE ops to track storage change. @@ -174,9 +167,6 @@ func (l *StructLogger) CaptureState(env *EVM, pc uint64, op OpCode, gas, cost ui l.current = l.current.parent } if err != nil { - if l.current.error != nil { - l.current.error=fmt.Errorf("%s:%s", l.current.error.Error(), err.Error()) - } l.current.error = err } switch op {