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
2 people authored and amaury1093 committed Jan 19, 2021
1 parent a334a59 commit b62542b
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 b62542b

Please sign in to comment.