-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
R4R: Fix CLI commands JSON output #2266
Conversation
@alessio can you post example output please? |
@alexanderbez sure: Broken encoding:
Correct encoding:
|
Attaching here type ResponseDeliverTx struct {
Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
Log string `protobuf:"bytes,3,opt,name=log,proto3" json:"log,omitempty"`
Info string `protobuf:"bytes,4,opt,name=info,proto3" json:"info,omitempty"`
GasWanted int64 `protobuf:"varint,5,opt,name=gas_wanted,json=gasWanted,proto3" json:"gas_wanted,omitempty"`
GasUsed int64 `protobuf:"varint,6,opt,name=gas_used,json=gasUsed,proto3" json:"gas_used,omitempty"`
Tags []common.KVPair `protobuf:"bytes,7,rep,name=tags" json:"tags,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} |
Thank you -- unfortunate the key/values are not decoded :-/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK 👍
When running with --json, commands should produce correctly JSON-encoded output. Closes: #2265
850a2a6
to
3ceccfa
Compare
Codecov Report
@@ Coverage Diff @@
## develop #2266 +/- ##
========================================
Coverage 63.73% 63.73%
========================================
Files 140 140
Lines 8642 8642
========================================
Hits 5508 5508
Misses 2755 2755
Partials 379 379 |
lint fail |
@rigelrozanski the failure seems unrelated |
@rigelrozanski the lint failure seems to have been introduced with 753e58b - @ValarDragon any thoughts? |
Yeah, basically Jeremy's IAVL pr magically made the linter catch more errors. I have this particular lint failure fixed in #2273 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
When running with --json, commands should produce
correctly JSON-encoded output.
Closes: #2265
Updated relevant documentation (docs/
)PENDING.md
with issue #Files changed
in the github PR explorerFor Admin Use: