Skip to content

Commit

Permalink
export meq field
Browse files Browse the repository at this point in the history
  • Loading branch information
lwedge99 committed Feb 1, 2024
1 parent 400400e commit 12ca5b6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions eth/tracers/logger/gen_structlog.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions eth/tracers/logger/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ type structLogMarshaling struct {
Gas math.HexOrDecimal64
GasCost math.HexOrDecimal64
Memory hexutil.Bytes
Meq *int `json:"meq,omitempty"`
ReturnData hexutil.Bytes
Stack []hexutil.U256
OpName string `json:"opName"` // adds call to OpName() in MarshalJSON
Expand Down Expand Up @@ -458,6 +459,7 @@ type StructLogRes struct {
Stack *[]string `json:"stack,omitempty"`
ReturnData string `json:"returnData,omitempty"`
Memory *[]string `json:"memory,omitempty"`
Meq *int `json:"meq,omitempty"`
Storage *map[string]string `json:"storage,omitempty"`
RefundCounter uint64 `json:"refund,omitempty"`
}
Expand All @@ -474,6 +476,7 @@ func formatLogs(logs []StructLog) []StructLogRes {
Depth: trace.Depth,
Error: trace.ErrorString(),
RefundCounter: trace.RefundCounter,
Meq: trace.Meq,
}
if trace.Stack != nil {
stack := make([]string, len(trace.Stack))
Expand Down

0 comments on commit 12ca5b6

Please sign in to comment.