From c506d4517718b639f6a06639ce12d0cde0347a16 Mon Sep 17 00:00:00 2001 From: krhubert Date: Tue, 11 Feb 2020 12:04:19 +0100 Subject: [PATCH] Fix module ownership client --- x/ownership/client/cli/query.go | 4 +++- x/ownership/client/rest/query.go | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/x/ownership/client/cli/query.go b/x/ownership/client/cli/query.go index 5ec7d713b..2172df13e 100644 --- a/x/ownership/client/cli/query.go +++ b/x/ownership/client/cli/query.go @@ -24,7 +24,9 @@ func GetQueryCmd(queryRoute string, cdc *codec.Codec) *cobra.Command { } ownershipQueryCmd.AddCommand( - flags.GetCommands()..., + flags.GetCommands( + GetCmdListOwnerships(queryRoute, cdc), + )..., ) return ownershipQueryCmd diff --git a/x/ownership/client/rest/query.go b/x/ownership/client/rest/query.go index 38c349524..5c2165d05 100644 --- a/x/ownership/client/rest/query.go +++ b/x/ownership/client/rest/query.go @@ -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 {