@@ -72,7 +72,7 @@ const (
72
72
73
73
func convertToTrace (debugTrace CallFrame , blockHash * common.Hash , blockNumber uint64 , txHash * common.Hash , txPosition uint64 ) []* Trace {
74
74
result := make ([]* Trace , 0 )
75
- traces , _ := parseTraceInternal (debugTrace , blockHash , blockNumber , txHash , txPosition , make ([]int , 0 ))
75
+ traces := parseTraceInternal (debugTrace , blockHash , blockNumber , txHash , txPosition , make ([]int , 0 ))
76
76
result = append (result , traces ... )
77
77
78
78
return result
@@ -84,7 +84,7 @@ func isPrecompiled(address *common.Address) bool {
84
84
}
85
85
86
86
//nolint:funlen
87
- func parseTraceInternal (debugTrace CallFrame , blockHash * common.Hash , blockNumber uint64 , txHash * common.Hash , txPosition uint64 , traceAddress []int ) ( []* Trace , uint64 ) {
87
+ func parseTraceInternal (debugTrace CallFrame , blockHash * common.Hash , blockNumber uint64 , txHash * common.Hash , txPosition uint64 , traceAddress []int ) []* Trace {
88
88
traceResult := make ([]* Trace , 0 )
89
89
90
90
traceType := mapTraceType (debugTrace .Type .String ())
@@ -126,7 +126,7 @@ func parseTraceInternal(debugTrace CallFrame, blockHash *common.Hash, blockNumbe
126
126
copy (traceCopy , traceAddress )
127
127
traceCopy = append (traceCopy , subCalls )
128
128
var traces []* Trace
129
- traces , _ = parseTraceInternal (call , blockHash , blockNumber , txHash , txPosition , traceCopy )
129
+ traces = parseTraceInternal (call , blockHash , blockNumber , txHash , txPosition , traceCopy )
130
130
traceResult = append (traceResult , traces ... )
131
131
subCalls ++
132
132
}
@@ -174,7 +174,7 @@ func parseTraceInternal(debugTrace CallFrame, blockHash *common.Hash, blockNumbe
174
174
traceEntry .Action = action
175
175
}
176
176
177
- return traceResult , gasUsed
177
+ return traceResult
178
178
}
179
179
180
180
func mapTraceType (traceType string ) string {
0 commit comments