From 13169ab6299d5facf89508aa155f460070b9b2b9 Mon Sep 17 00:00:00 2001 From: Ethan Frey Date: Thu, 8 Oct 2020 17:22:08 +0200 Subject: [PATCH] Base64 encoded return data on wasm raw query REST endpoint --- x/wasm/client/rest/query.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/wasm/client/rest/query.go b/x/wasm/client/rest/query.go index cedae1ec76..1197a73f07 100644 --- a/x/wasm/client/rest/query.go +++ b/x/wasm/client/rest/query.go @@ -180,7 +180,7 @@ func queryContractStateRawHandlerFn(cliCtx context.CLIContext) http.HandlerFunc return } cliCtx = cliCtx.WithHeight(height) - rest.PostProcessResponse(w, cliCtx, json.RawMessage(res)) + rest.PostProcessResponse(w, cliCtx, res) } }