@@ -1135,28 +1135,30 @@ type ExecutionResult struct {
1135
1135
// StructLogRes stores a structured log emitted by the EVM while replaying a
1136
1136
// transaction in debug mode
1137
1137
type StructLogRes struct {
1138
- Pc uint64 `json:"pc"`
1139
- Op string `json:"op"`
1140
- Gas uint64 `json:"gas"`
1141
- GasCost uint64 `json:"gasCost"`
1142
- Depth int `json:"depth"`
1143
- Error string `json:"error,omitempty"`
1144
- Stack * []string `json:"stack,omitempty"`
1145
- Memory * []string `json:"memory,omitempty"`
1146
- Storage * map [string ]string `json:"storage,omitempty"`
1138
+ Pc uint64 `json:"pc"`
1139
+ Op string `json:"op"`
1140
+ Gas uint64 `json:"gas"`
1141
+ GasCost uint64 `json:"gasCost"`
1142
+ Depth int `json:"depth"`
1143
+ Error string `json:"error,omitempty"`
1144
+ Stack * []string `json:"stack,omitempty"`
1145
+ Memory * []string `json:"memory,omitempty"`
1146
+ Storage * map [string ]string `json:"storage,omitempty"`
1147
+ RefundCounter uint64 `json:"refund,omitempty"`
1147
1148
}
1148
1149
1149
1150
// FormatLogs formats EVM returned structured logs for json output
1150
1151
func FormatLogs (logs []logger.StructLog ) []StructLogRes {
1151
1152
formatted := make ([]StructLogRes , len (logs ))
1152
1153
for index , trace := range logs {
1153
1154
formatted [index ] = StructLogRes {
1154
- Pc : trace .Pc ,
1155
- Op : trace .Op .String (),
1156
- Gas : trace .Gas ,
1157
- GasCost : trace .GasCost ,
1158
- Depth : trace .Depth ,
1159
- Error : trace .ErrorString (),
1155
+ Pc : trace .Pc ,
1156
+ Op : trace .Op .String (),
1157
+ Gas : trace .Gas ,
1158
+ GasCost : trace .GasCost ,
1159
+ Depth : trace .Depth ,
1160
+ Error : trace .ErrorString (),
1161
+ RefundCounter : trace .RefundCounter ,
1160
1162
}
1161
1163
if trace .Stack != nil {
1162
1164
stack := make ([]string , len (trace .Stack ))
0 commit comments