Skip to content

Commit

Permalink
fix: fix list-consumer-chains CLI command (backport #2313) (#2325)
Browse files Browse the repository at this point in the history
fix: fix `list-consumer-chains` CLI command  (#2313)

fix list-consumer-chains query pagination

(cherry picked from commit c8d13f5)

Co-authored-by: Simon Noetzlin <[email protected]>
  • Loading branch information
mergify[bot] and sainoe authored Oct 3, 2024
1 parent 22fef42 commit 3f96e5c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion x/ccv/provider/client/cli/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 3f96e5c

Please sign in to comment.