diff --git a/x/gov/client/rest/util.go b/x/gov/client/rest/util.go index 3f5fadbd72f9..341f0b05775e 100644 --- a/x/gov/client/rest/util.go +++ b/x/gov/client/rest/util.go @@ -25,7 +25,7 @@ func buildReq(w http.ResponseWriter, r *http.Request, cdc *wire.Codec, req inter writeErr(&w, http.StatusBadRequest, err.Error()) return err } - err = cdc.UnmarshalJSON(body, &req) + err = cdc.UnmarshalJSON(body, req) if err != nil { writeErr(&w, http.StatusBadRequest, err.Error()) return err