We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c38fab9 commit f311488Copy full SHA for f311488
internal/ethapi/api.go
@@ -1120,7 +1120,7 @@ type StructLogRes struct {
1120
Gas uint64 `json:"gas"`
1121
GasCost uint64 `json:"gasCost"`
1122
Depth int `json:"depth"`
1123
- Error error `json:"error,omitempty"`
+ Error string `json:"error,omitempty"`
1124
Stack *[]string `json:"stack,omitempty"`
1125
Memory *[]string `json:"memory,omitempty"`
1126
Storage *map[string]string `json:"storage,omitempty"`
@@ -1136,7 +1136,7 @@ func FormatLogs(logs []vm.StructLog) []StructLogRes {
1136
Gas: trace.Gas,
1137
GasCost: trace.GasCost,
1138
Depth: trace.Depth,
1139
- Error: trace.Err,
+ Error: trace.ErrorString(),
1140
}
1141
if trace.Stack != nil {
1142
stack := make([]string, len(trace.Stack))
0 commit comments