Skip to content

Commit

Permalink
fix: add missing pagination param in cli client
Browse files Browse the repository at this point in the history
  • Loading branch information
jaeseung-bae committed May 17, 2024
1 parent 67ac17f commit 3910a4a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion x/fswap/client/cli/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,15 @@ func CmdQuerySwaps() *cobra.Command {
}
queryClient := types.NewQueryClient(clientCtx)

res, err := queryClient.Swaps(cmd.Context(), &types.QuerySwapsRequest{})
pageReq, err := client.ReadPageRequest(cmd.Flags())
if err != nil {
return err
}

req := &types.QuerySwapsRequest{
Pagination: pageReq,
}
res, err := queryClient.Swaps(cmd.Context(), req)
if err != nil {
return err
}
Expand Down

0 comments on commit 3910a4a

Please sign in to comment.