We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The field Description of MsgEditValidator is marshaled to json as 'Description' which contains an uppercase letter. Other fields are all lowercase.
Description
MsgEditValidator
{ "type":"cosmos-sdk/MsgEditValidator", "value":{ "Description":{ "moniker":"nodeAAA", "identity":"CF1FAAA36A78BE02", "website":"www.example.com", "details":"DETAILS" }, "address":"xxx", "commission_rate":null, "min_self_delegation":null } }
lastest
https://github.com/cosmos/cosmos-sdk/blob/master/x/staking/types/msg.go#L185
Add json tag.
type MsgEditValidator struct { Description `json:"description" yaml:"description"` ValidatorAddress sdk.ValAddress `json:"address" yaml:"address"` ... }
The text was updated successfully, but these errors were encountered:
add json tag to MsgEditValidator; closes #5336
486a797
fix MsgEditValidator JSON tag (#5342)
b9c40ea
* add json tag to MsgEditValidator; closes #5336 * changelog * Apply suggestions from code review Co-Authored-By: Alessio Treglia <[email protected]> * format * changelog minor fix
fix MsgEditValidator JSON tag (cosmos#5342)
e3f2338
* add json tag to MsgEditValidator; closes cosmos#5336 * changelog * Apply suggestions from code review Co-Authored-By: Alessio Treglia <[email protected]> * format * changelog minor fix
fedekunze
Successfully merging a pull request may close this issue.
Summary of Bug
The field
Description
ofMsgEditValidator
is marshaled to json as 'Description' which contains an uppercase letter. Other fields are all lowercase.Version
lastest
Steps to Reproduce
https://github.com/cosmos/cosmos-sdk/blob/master/x/staking/types/msg.go#L185
Suggestion
Add json tag.
For Admin Use
The text was updated successfully, but these errors were encountered: