Skip to content

Commit

Permalink
Merge pull request cosmos#286 from CosmWasm/raw-query-returns-base64
Browse files Browse the repository at this point in the history
Encode raw queries as base64: The missing commit
  • Loading branch information
ethanfrey authored Oct 9, 2020
2 parents b30902f + 80a7cfe commit 9984c01
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion x/wasm/client/rest/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit 9984c01

Please sign in to comment.