Skip to content

Commit

Permalink
Fix module ownership client
Browse files Browse the repository at this point in the history
  • Loading branch information
krhubert committed Feb 11, 2020
1 parent adea005 commit c506d45
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion x/ownership/client/cli/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ func GetQueryCmd(queryRoute string, cdc *codec.Codec) *cobra.Command {
}

ownershipQueryCmd.AddCommand(
flags.GetCommands()...,
flags.GetCommands(
GetCmdListOwnerships(queryRoute, cdc),
)...,
)

return ownershipQueryCmd
Expand Down
2 changes: 1 addition & 1 deletion x/ownership/client/rest/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func queryListHandlerFn(cliCtx context.CLIContext) http.HandlerFunc {
return
}

route := fmt.Sprintf("custom/%s/list", types.QuerierRoute)
route := fmt.Sprintf("custom/%s/%s", types.QuerierRoute, types.QueryListOwnerships)

res, height, err := cliCtx.QueryWithData(route, nil)
if err != nil {
Expand Down

0 comments on commit c506d45

Please sign in to comment.