Skip to content

Commit

Permalink
++
Browse files Browse the repository at this point in the history
  • Loading branch information
gsk967 committed Dec 8, 2023
1 parent df1dc01 commit 4825aba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x/uibc/client/cli/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func GetAllInflows() *cobra.Command {
queryClient := uibc.NewQueryClient(clientCtx)

req := &uibc.QueryAllInflows{}
if len(args[0]) != 0 {
if len(args) > 0 && len(args[0]) != 0 {
req.Denom = args[0]
}

Expand Down Expand Up @@ -72,7 +72,7 @@ func GetInflows() *cobra.Command {
queryClient := uibc.NewQueryClient(clientCtx)

req := &uibc.QueryInflows{}
if len(args[0]) != 0 {
if len(args) > 0 && len(args[0]) != 0 {
req.Denom = args[0]
}

Expand Down Expand Up @@ -124,7 +124,7 @@ func GetOutflows() *cobra.Command {

queryClient := uibc.NewQueryClient(clientCtx)
queryReq := uibc.QueryOutflows{}
if len(args) > 0 {
if len(args) > 0 && len(args[0]) != 0 {
queryReq.Denom = args[0]
}
resp, err := queryClient.Outflows(cmd.Context(), &queryReq)
Expand Down

0 comments on commit 4825aba

Please sign in to comment.