-
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
Migrate {x/auth, x/gov, x/staking} missing CLI queries to proto #6994
Changes from 43 commits
e353cd0
93fab54
237c08f
a8e1550
ce925c3
97e1d87
647d146
bc70575
e564ed1
f34a03b
810fcac
176592c
d8d3264
d899405
706bacc
e228a57
95fccdd
1991204
a541306
0ef79e6
bc4498e
3c8bc53
66000da
d5dc3a4
b4a41c2
2a02efc
db5d236
abcdee3
aaa930a
b187831
61e257e
6e10445
0be2e5b
2dac31c
c8815e7
e08c852
1aa75c4
bed75a8
aa9b78f
1ea476f
cf17bcd
8fb572d
85a92e9
8b96e49
c2e6f7f
97269db
afca789
598be43
1a406c9
3ec3d52
ff49992
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,7 +50,7 @@ func (any *Any) UnmarshalAmino(bz []byte) error { | |
return nil | ||
} | ||
|
||
func (any Any) MarshalJSON() ([]byte, error) { | ||
func (any *Any) MarshalJSON() ([]byte, error) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do we need a pointer reference when marshaling? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Using Any, I didn't dig too much into it, but anyways, without the reference, tests fail. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @amaurymartiny , this could be some weird concurrency issue. If you use |
||
ac := any.compat | ||
if ac == nil { | ||
return nil, anyCompatError("JSON marshal", any) | ||
|
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.
GetProtoTx()
is a little bit more verbose, but at least it makes sense in the StdTx case too.