From 0c6459346d05b49bc3dc3135b722d0fad85c5d75 Mon Sep 17 00:00:00 2001 From: Kevin Davis Date: Thu, 27 Feb 2020 12:59:11 -0500 Subject: [PATCH] fix: use standard abci query convention --- x/auction/client/rest/query.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x/auction/client/rest/query.go b/x/auction/client/rest/query.go index 2c7f4eaa..374c2246 100644 --- a/x/auction/client/rest/query.go +++ b/x/auction/client/rest/query.go @@ -46,7 +46,7 @@ func queryAuctionHandlerFn(cliCtx context.CLIContext) http.HandlerFunc { } // Query - res, height, err := cliCtx.QueryWithData(fmt.Sprintf("/custom/%s/%s", types.ModuleName, types.QueryGetAuction), bz) + res, height, err := cliCtx.QueryWithData(fmt.Sprintf("custom/%s/%s", types.ModuleName, types.QueryGetAuction), bz) if err != nil { rest.WriteErrorResponse(w, http.StatusInternalServerError, err.Error()) return @@ -75,7 +75,7 @@ func queryAuctionsHandlerFn(cliCtx context.CLIContext) http.HandlerFunc { } // Get all auctions - res, height, err := cliCtx.QueryWithData(fmt.Sprintf("/custom/%s/%s", types.ModuleName, types.QueryGetAuctions), nil) + res, height, err := cliCtx.QueryWithData(fmt.Sprintf("custom/%s/%s", types.ModuleName, types.QueryGetAuctions), nil) if err != nil { rest.WriteErrorResponse(w, http.StatusNotFound, err.Error()) return