Skip to content

Commit f311488

Browse files
authored
internal/ethapi: fix trace log marshalling (#23292)
1 parent c38fab9 commit f311488

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/ethapi/api.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1120,7 +1120,7 @@ type StructLogRes struct {
11201120
Gas uint64 `json:"gas"`
11211121
GasCost uint64 `json:"gasCost"`
11221122
Depth int `json:"depth"`
1123-
Error error `json:"error,omitempty"`
1123+
Error string `json:"error,omitempty"`
11241124
Stack *[]string `json:"stack,omitempty"`
11251125
Memory *[]string `json:"memory,omitempty"`
11261126
Storage *map[string]string `json:"storage,omitempty"`
@@ -1136,7 +1136,7 @@ func FormatLogs(logs []vm.StructLog) []StructLogRes {
11361136
Gas: trace.Gas,
11371137
GasCost: trace.GasCost,
11381138
Depth: trace.Depth,
1139-
Error: trace.Err,
1139+
Error: trace.ErrorString(),
11401140
}
11411141
if trace.Stack != nil {
11421142
stack := make([]string, len(trace.Stack))

0 commit comments

Comments
 (0)