Skip to content

Commit

Permalink
fix(cosmos): make swingset key cli easier to use
Browse files Browse the repository at this point in the history
  • Loading branch information
arirubinstein authored and mergify-bot committed Apr 5, 2022
1 parent dbb5400 commit 08f61a3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion golang/cosmos/x/swingset/client/cli/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,10 @@ func GetCmdGetKeys(queryRoute string) *cobra.Command {
}
queryClient := types.NewQueryClient(clientCtx)

path := strings.Split(args[0], ".")
path := []string{""}
if len(args) > 0 {
path = strings.Split(args[0], ".")
}

res, err := queryClient.Keys(cmd.Context(), &types.QueryKeysRequest{
Path: path,
Expand Down

0 comments on commit 08f61a3

Please sign in to comment.