Skip to content

Commit

Permalink
internal/ethapi: fix trace log marshalling (ethereum#23292)
Browse files Browse the repository at this point in the history
  • Loading branch information
rjl493456442 authored and Martin committed Aug 28, 2021
1 parent 4518808 commit 79a35c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/ethapi/api.go
Expand Up @@ -1120,7 +1120,7 @@ type StructLogRes struct {
Gas uint64 `json:"gas"`
GasCost uint64 `json:"gasCost"`
Depth int `json:"depth"`
Error error `json:"error,omitempty"`
Error string `json:"error,omitempty"`
Stack *[]string `json:"stack,omitempty"`
Memory *[]string `json:"memory,omitempty"`
Storage *map[string]string `json:"storage,omitempty"`
Expand All @@ -1136,7 +1136,7 @@ func FormatLogs(logs []vm.StructLog) []StructLogRes {
Gas: trace.Gas,
GasCost: trace.GasCost,
Depth: trace.Depth,
Error: trace.Err,
Error: trace.ErrorString(),
}
if trace.Stack != nil {
stack := make([]string, len(trace.Stack))
Expand Down

0 comments on commit 79a35c6

Please sign in to comment.