fix GET /upgrade/current query (#8280)

* fix cli queries

* fix codec issue

* revert cli

Co-authored-by: SaReN <sahithnarahari@gmail.com>
This commit is contained in:
MD Aleem
2021-01-08 09:52:33 +00:00
committed by GitHub
co-authored by SaReN
parent 7fc5e3e6ab
commit 51e7e913fb
+1 -1
View File
@@ -34,7 +34,7 @@ func getCurrentPlanHandler(clientCtx client.Context) func(http.ResponseWriter, *
}
var plan types.Plan
err = clientCtx.LegacyAmino.UnmarshalBinaryBare(res, &plan)
err = clientCtx.LegacyAmino.UnmarshalJSON(res, &plan)
if rest.CheckInternalServerError(w, err) {
return
}