Removes useless code

This commit is contained in:
CMajeri 2021-07-28 15:21:38 +02:00 committed by johandroz
parent 46d8bc473e
commit 0b450bcb6d
No known key found for this signature in database
GPG key ID: 2B5DA6843548ED2E

View file

@ -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 {