Fixed json field names in stake msg types
This commit is contained in:
parent
ad3c63dded
commit
660e4e9080
@ -117,8 +117,8 @@ func (msg MsgEditCandidacy) ValidateBasic() sdk.Error {
|
||||
|
||||
// MsgDelegate - struct for bonding transactions
|
||||
type MsgDelegate struct {
|
||||
DelegatorAddr sdk.Address `json:"address"`
|
||||
ValidatorAddr sdk.Address `json:"address"`
|
||||
DelegatorAddr sdk.Address `json:"delegator"`
|
||||
ValidatorAddr sdk.Address `json:"candidate"`
|
||||
Bond sdk.Coin `json:"bond"`
|
||||
}
|
||||
|
||||
@ -164,8 +164,8 @@ func (msg MsgDelegate) ValidateBasic() sdk.Error {
|
||||
|
||||
// MsgUnbond - struct for unbonding transactions
|
||||
type MsgUnbond struct {
|
||||
DelegatorAddr sdk.Address `json:"address"`
|
||||
ValidatorAddr sdk.Address `json:"address"`
|
||||
DelegatorAddr sdk.Address `json:"delegator"`
|
||||
ValidatorAddr sdk.Address `json:"candidate"`
|
||||
Shares string `json:"shares"`
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user