Skip to content

Commit

Permalink
Revert "eth/tracers: add ReturnData in the tracer's response (ethereu…
Browse files Browse the repository at this point in the history
…m#27704)"

This reverts commit c8d5e33.
  • Loading branch information
devopsbo3 committed Nov 10, 2023
1 parent a389b27 commit ed736ba
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions eth/tracers/logger/logger.go
Expand Up @@ -418,7 +418,6 @@ type StructLogRes struct {
Depth int `json:"depth"`
Error string `json:"error,omitempty"`
Stack *[]string `json:"stack,omitempty"`
ReturnData string `json:"returnData,omitempty"`
Memory *[]string `json:"memory,omitempty"`
Storage *map[string]string `json:"storage,omitempty"`
RefundCounter uint64 `json:"refund,omitempty"`
Expand All @@ -444,9 +443,6 @@ func formatLogs(logs []StructLog) []StructLogRes {
}
formatted[index].Stack = &stack
}
if trace.ReturnData != nil && len(trace.ReturnData) > 0 {
formatted[index].ReturnData = hexutil.Bytes(trace.ReturnData).String()
}
if trace.Memory != nil {
memory := make([]string, 0, (len(trace.Memory)+31)/32)
for i := 0; i+32 <= len(trace.Memory); i += 32 {
Expand Down

0 comments on commit ed736ba

Please sign in to comment.