Merge pull request #286 from CosmWasm/raw-query-returns-base64

Encode raw queries as base64: The missing commit
This commit is contained in:
Ethan Frey
2020-10-09 10:51:48 +02:00
committed by GitHub

View File

@@ -180,7 +180,9 @@ func queryContractStateRawHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
return
}
cliCtx = cliCtx.WithHeight(height)
rest.PostProcessResponse(w, cliCtx, res)
// ensure this is base64 encoded
encoded := base64.StdEncoding.EncodeToString(res)
rest.PostProcessResponse(w, cliCtx, encoded)
}
}