Skip to content

Commit

Permalink
fix list-consumer-chains query pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
sainoe committed Sep 27, 2024
1 parent ccb2679 commit 8bde717
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 8bde717

Please sign in to comment.