From 8bde7172271fc689191197b86845a5e03db24f12 Mon Sep 17 00:00:00 2001 From: Simon Noetzlin Date: Fri, 27 Sep 2024 18:27:02 +0200 Subject: [PATCH] fix list-consumer-chains query pagination --- x/ccv/provider/client/cli/query.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/x/ccv/provider/client/cli/query.go b/x/ccv/provider/client/cli/query.go index ef4b398624..19d6d1f7fd 100644 --- a/x/ccv/provider/client/cli/query.go +++ b/x/ccv/provider/client/cli/query.go @@ -10,6 +10,7 @@ import ( "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/query" "github.com/cosmos/cosmos-sdk/version" "github.com/cosmos/interchain-security/v6/x/ccv/provider/types" @@ -102,7 +103,9 @@ func CmdConsumerChains() *cobra.Command { if err != nil { return err } - req.Pagination.Limit = uint64(limit) + req.Pagination = &query.PageRequest{ + Limit: uint64(limit), + } } res, err := queryClient.QueryConsumerChains(cmd.Context(), req)