Skip to content

Commit

Permalink
fix: CLI integration tests fixed (#503)
Browse files Browse the repository at this point in the history
* fix: CLI integration tests fixed

* ci:Turn on all tests
  • Loading branch information
Unique-Divine authored May 26, 2022
1 parent 4c7205c commit b691edf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
15 changes: 3 additions & 12 deletions x/dex/client/cli/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,7 @@ func CmdQueryParams() *cobra.Command {
Short: "shows the parameters of the module",
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
clientCtx, err := client.GetClientQueryContext(cmd)
if err != nil {
return err
}
clientCtx := client.GetClientContextFromCmd(cmd)

queryClient := types.NewQueryClient(clientCtx)

Expand Down Expand Up @@ -147,10 +144,7 @@ $ %s query dex total-liquidity
),
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
clientCtx, err := client.GetClientQueryContext(cmd)
if err != nil {
return err
}
clientCtx := client.GetClientContextFromCmd(cmd)

queryClient := types.NewQueryClient(clientCtx)

Expand Down Expand Up @@ -181,10 +175,7 @@ $ %s query dex pool-liquidity 1
),
Args: cobra.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
clientCtx, err := client.GetClientQueryContext(cmd)
if err != nil {
return err
}
clientCtx := client.GetClientContextFromCmd(cmd)

queryClient := types.NewQueryClient(clientCtx)
poolId, _ := sdk.NewIntFromString(args[0])
Expand Down
4 changes: 2 additions & 2 deletions x/vpool/types/query.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b691edf

Please sign in to comment.