Skip to content

Commit

Permalink
fix: use GetClientQueryContext for --height flag on cli #28
Browse files Browse the repository at this point in the history
  • Loading branch information
dongsam committed Apr 18, 2023
1 parent c2fad97 commit f74697a
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions x/liquidity/client/cli/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ $ %s query %s params
),
),
RunE: func(cmd *cobra.Command, args []string) error {
clientCtx, err := client.GetClientTxContext(cmd)
clientCtx, err := client.GetClientQueryContext(cmd)
if err != nil {
return err
}
Expand Down Expand Up @@ -103,7 +103,7 @@ $ %[1]s query %[2]s pool --reserve-acc=[address]
),
RunE: func(cmd *cobra.Command, args []string) error {
var res *types.QueryLiquidityPoolResponse
clientCtx, err := client.GetClientTxContext(cmd)
clientCtx, err := client.GetClientQueryContext(cmd)
if err != nil {
return err
}
Expand Down Expand Up @@ -180,7 +180,7 @@ $ %s query %s pools
),
),
RunE: func(cmd *cobra.Command, args []string) error {
clientCtx, err := client.GetClientTxContext(cmd)
clientCtx, err := client.GetClientQueryContext(cmd)
if err != nil {
return err
}
Expand Down Expand Up @@ -222,7 +222,7 @@ $ %s query %s batch 1
),
),
RunE: func(cmd *cobra.Command, args []string) error {
clientCtx, err := client.GetClientTxContext(cmd)
clientCtx, err := client.GetClientQueryContext(cmd)
if err != nil {
return err
}
Expand Down Expand Up @@ -267,7 +267,7 @@ $ %s query %s deposits 1
),
),
RunE: func(cmd *cobra.Command, args []string) error {
clientCtx, err := client.GetClientTxContext(cmd)
clientCtx, err := client.GetClientQueryContext(cmd)
if err != nil {
return err
}
Expand Down Expand Up @@ -322,7 +322,7 @@ $ %s query %s deposit 1 20
),
),
RunE: func(cmd *cobra.Command, args []string) error {
clientCtx, err := client.GetClientTxContext(cmd)
clientCtx, err := client.GetClientQueryContext(cmd)
if err != nil {
return err
}
Expand Down Expand Up @@ -378,7 +378,7 @@ $ %s query %s withdraws 1
),
),
RunE: func(cmd *cobra.Command, args []string) error {
clientCtx, err := client.GetClientTxContext(cmd)
clientCtx, err := client.GetClientQueryContext(cmd)
if err != nil {
return err
}
Expand Down Expand Up @@ -427,7 +427,7 @@ $ %s query %s withdraw 1 20
),
),
RunE: func(cmd *cobra.Command, args []string) error {
clientCtx, err := client.GetClientTxContext(cmd)
clientCtx, err := client.GetClientQueryContext(cmd)
if err != nil {
return err
}
Expand Down Expand Up @@ -483,7 +483,7 @@ $ %s query %s swaps 1
),
),
RunE: func(cmd *cobra.Command, args []string) error {
clientCtx, err := client.GetClientTxContext(cmd)
clientCtx, err := client.GetClientQueryContext(cmd)
if err != nil {
return err
}
Expand Down Expand Up @@ -538,7 +538,7 @@ $ %s query %s swap 1 20
),
),
RunE: func(cmd *cobra.Command, args []string) error {
clientCtx, err := client.GetClientTxContext(cmd)
clientCtx, err := client.GetClientQueryContext(cmd)
if err != nil {
return err
}
Expand Down

0 comments on commit f74697a

Please sign in to comment.