Skip to content

Commit

Permalink
review change
Browse files Browse the repository at this point in the history
  • Loading branch information
atheeshp committed Jul 15, 2020
1 parent dd571a7 commit aa6699c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions x/staking/client/cli/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ $ %s query staking validator cosmosvaloper1gghjut3ccd8ay0zduzj64hwre2fxs9ldmqhff
Args: cobra.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
clientCtx := client.GetClientContextFromCmd(cmd)
clientCtx, err := client.ReadQueryCommandFlags(clientCtx, cmd.Flags())
if err != nil {
return err
}

queryClient := types.NewQueryClient(clientCtx)

addr, err := sdk.ValAddressFromBech32(args[0])
Expand Down

0 comments on commit aa6699c

Please sign in to comment.