mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 01:13:45 +00:00
feat: add RefundCounter to StructLogRes (#66)
This commit is contained in:
parent
e55d05d3ab
commit
9f1d8552e4
2 changed files with 18 additions and 16 deletions
|
|
@ -40,6 +40,7 @@ type StructLogRes struct {
|
||||||
Stack *[]string `json:"stack,omitempty"`
|
Stack *[]string `json:"stack,omitempty"`
|
||||||
Memory *[]string `json:"memory,omitempty"`
|
Memory *[]string `json:"memory,omitempty"`
|
||||||
Storage *map[string]string `json:"storage,omitempty"`
|
Storage *map[string]string `json:"storage,omitempty"`
|
||||||
|
RefundCounter uint64 `json:"refund,omitempty"`
|
||||||
ExtraData *ExtraData `json:"extraData,omitempty"`
|
ExtraData *ExtraData `json:"extraData,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -424,6 +424,7 @@ func FormatLogs(logs []StructLog) []types.StructLogRes {
|
||||||
Gas: trace.Gas,
|
Gas: trace.Gas,
|
||||||
GasCost: trace.GasCost,
|
GasCost: trace.GasCost,
|
||||||
Depth: trace.Depth,
|
Depth: trace.Depth,
|
||||||
|
RefundCounter: trace.RefundCounter,
|
||||||
Error: trace.ErrorString(),
|
Error: trace.ErrorString(),
|
||||||
}
|
}
|
||||||
if len(trace.Stack) != 0 {
|
if len(trace.Stack) != 0 {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue