Skip to content

Commit

Permalink
Omit empty Path when marshalling ProcedureReport to JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
m-Peter committed Mar 19, 2024
1 parent 82897b1 commit c21ffd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion emulator/computation_report.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
)

type ProcedureReport struct {
Path string `json:"path"`
Path string `json:"path,omitempty"`
ComputationUsed uint64 `json:"computation"`
// To get the computation from the intensities map, see:
// https://github.com/onflow/flow-go/blob/master/fvm/meter/computation_meter.go#L32-L39
Expand Down

0 comments on commit c21ffd9

Please sign in to comment.