From fd5b8835e13f1f3e8f00bb4511ab8f2391c2c43e Mon Sep 17 00:00:00 2001 From: chengwenxi Date: Thu, 28 May 2020 10:31:55 +0800 Subject: [PATCH 1/2] fix typo --- x/gov/types/params.go | 2 +- x/staking/types/params.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/x/gov/types/params.go b/x/gov/types/params.go index 511485bfa1eb..087e17217237 100644 --- a/x/gov/types/params.go +++ b/x/gov/types/params.go @@ -193,7 +193,7 @@ func validateVotingParams(i interface{}) error { type Params struct { VotingParams VotingParams `json:"voting_params" yaml:"voting_params"` TallyParams TallyParams `json:"tally_params" yaml:"tally_params"` - DepositParams DepositParams `json:"deposit_params" yaml:"deposit_parmas"` + DepositParams DepositParams `json:"deposit_params" yaml:"deposit_params"` } func (gp Params) String() string { diff --git a/x/staking/types/params.go b/x/staking/types/params.go index 6a00f4625bc4..4b1e98ee7d1e 100644 --- a/x/staking/types/params.go +++ b/x/staking/types/params.go @@ -35,7 +35,7 @@ const ( var ( KeyUnbondingTime = []byte("UnbondingTime") KeyMaxValidators = []byte("MaxValidators") - KeyMaxEntries = []byte("KeyMaxEntries") + KeyMaxEntries = []byte("MaxEntries") KeyBondDenom = []byte("BondDenom") KeyHistoricalEntries = []byte("HistoricalEntries") ) From ec12f2f80eb20dd2be0dc18a30c565b353a3fa75 Mon Sep 17 00:00:00 2001 From: chengwenxi Date: Fri, 29 May 2020 10:12:20 +0800 Subject: [PATCH 2/2] add changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 587d76ec1115..77b132a60802 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -39,6 +39,7 @@ Ref: https://keepachangelog.com/en/1.0.0/ ### Client Breaking +* (x/gov) [#6295](https://github.com/cosmos/cosmos-sdk/pull/6295) Fix typo in querying governance params. * (x/auth) [\#6054](https://github.com/cosmos/cosmos-sdk/pull/6054) Remove custom JSON marshaling for base accounts as multsigs cannot be bech32 decoded. * (modules) [\#5572](https://github.com/cosmos/cosmos-sdk/pull/5572) The `/bank/balances/{address}` endpoint now returns all account balances or a single balance by denom when the `denom` query parameter is present.