Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
Fix queries with height param at bcna module
Browse files Browse the repository at this point in the history
fix `show-bitcannaid [id]` query
  • Loading branch information
RaulBernal authored Feb 15, 2023
1 parent f0ba092 commit 2e90dc3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion x/bcna/client/cli/query_bitcannaid.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ func CmdShowBitcannaid() *cobra.Command {
Short: "shows a bitcannaid",
Args: cobra.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
clientCtx := client.GetClientContextFromCmd(cmd)
clientCtx, err := client.GetClientQueryContext(cmd)
if err != nil {
return err
}

queryClient := types.NewQueryClient(clientCtx)

Expand Down

0 comments on commit 2e90dc3

Please sign in to comment.