Skip to content

Commit c657222

Browse files
amaury1093aleem1314sahith-narahari
authored
fix GET /upgrade/current query (#8280) (#8372)
From: #8282 Co-authored-by: MD Aleem <[email protected]> Co-authored-by: SaReN <[email protected]>
1 parent b6b79e3 commit c657222

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x/upgrade/client/rest/query.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func getCurrentPlanHandler(clientCtx client.Context) func(http.ResponseWriter, *
3434
}
3535

3636
var plan types.Plan
37-
err = clientCtx.LegacyAmino.UnmarshalBinaryBare(res, &plan)
37+
err = clientCtx.LegacyAmino.UnmarshalJSON(res, &plan)
3838
if rest.CheckInternalServerError(w, err) {
3939
return
4040
}

0 commit comments

Comments
 (0)