Manually encode as base64 as auto-encoded doesn't work

This commit is contained in:
Ethan Frey
2020-10-08 20:29:55 +02:00
parent b30902fe1f
commit 80a7cfea84

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)
}
}