Merge pull request #286 from CosmWasm/raw-query-returns-base64
Encode raw queries as base64: The missing commit
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user