Skip to content

Commit

Permalink
fix GET /upgrade/current query (#8280)
Browse files Browse the repository at this point in the history
* fix cli queries

* fix codec issue

* revert cli

Co-authored-by: SaReN <sahithnarahari@gmail.com>
  • Loading branch information
aleem1314 and sahith-narahari authored Jan 8, 2021
1 parent 7fc5e3e commit 51e7e91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/upgrade/client/rest/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 51e7e91

Please sign in to comment.