Skip to content

Commit

Permalink
fix GET /upgrade/current query (#8280) (#8372)
Browse files Browse the repository at this point in the history
From: #8282

Co-authored-by: MD Aleem <72057206+aleem1314@users.noreply.github.com>
Co-authored-by: SaReN <sahithnarahari@gmail.com>
  • Loading branch information
3 people committed Jan 19, 2021
1 parent b6b79e3 commit c657222
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 c657222

Please sign in to comment.