Merge PR #4536: Return account queries with height

This commit is contained in:
colin axner
2019-06-13 15:54:17 +02:00
committed by Alexander Bezobchuk
parent 8c89023e9f
commit 95f3d32250
20 changed files with 125 additions and 104 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ func CLIVersionRequestHandler(w http.ResponseWriter, r *http.Request) {
// connected node version REST handler endpoint
func NodeVersionRequestHandler(cliCtx context.CLIContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
version, err := cliCtx.Query("/app/version", nil)
version, _, err := cliCtx.Query("/app/version", nil)
if err != nil {
rest.WriteErrorResponse(w, http.StatusInternalServerError, err.Error())
return