diff --git a/CHANGELOG.md b/CHANGELOG.md index 18d3992bc4..4312fe32d5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -185,6 +185,7 @@ Ref: https://keepachangelog.com/en/1.0.0/ ### Bug Fixes +* [\#11354](https://github.com/cosmos/cosmos-sdk/pull/11355) Added missing pagination flag for `bank q total` query. * [\#11197](https://github.com/cosmos/cosmos-sdk/pull/11197) Signing with multisig now works with multisig address which is not in the keyring. * (makefile) [\#11285](https://github.com/cosmos/cosmos-sdk/pull/11285) Fix lint-fix make target. * (client) [\#11283](https://github.com/cosmos/cosmos-sdk/issues/11283) Support multiple keys for tx simulation and setting automatic gas for txs. diff --git a/x/bank/client/cli/query.go b/x/bank/client/cli/query.go index f5ddcd0c4d..c0339b86f1 100644 --- a/x/bank/client/cli/query.go +++ b/x/bank/client/cli/query.go @@ -209,6 +209,7 @@ To query for the total supply of a specific coin denomination use: cmd.Flags().String(FlagDenom, "", "The specific balance denomination to query for") flags.AddQueryFlagsToCmd(cmd) + flags.AddPaginationFlagsToCmd(cmd, "all supply totals") return cmd } diff --git a/x/bank/client/testutil/suite.go b/x/bank/client/testutil/suite.go index f37d1f24c4..539dfc5f30 100644 --- a/x/bank/client/testutil/suite.go +++ b/x/bank/client/testutil/suite.go @@ -185,7 +185,7 @@ func (s *IntegrationTestSuite) TestGetCmdQueryTotalSupply() { sdk.NewCoin(fmt.Sprintf("%stoken", val.Moniker), s.cfg.AccountTokens), sdk.NewCoin(s.cfg.BondDenom, s.cfg.StakingTokens.Add(sdk.NewInt(10))), ), - Pagination: &query.PageResponse{Total: 2}, + Pagination: &query.PageResponse{Total: 0}, }, }, {