diff --git a/types/rest/rest.go b/types/rest/rest.go index 80afe2fb61..1f4d1f50c4 100644 --- a/types/rest/rest.go +++ b/types/rest/rest.go @@ -133,7 +133,7 @@ func (br BaseReq) ValidateBasic(w http.ResponseWriter) bool { } // ReadRESTReq reads and unmarshals a Request's body to the the BaseReq struct. -// Writes an error response to ResponseWriter and returns true if errors occurred. +// Writes an error response to ResponseWriter and returns false if errors occurred. func ReadRESTReq(w http.ResponseWriter, r *http.Request, cdc *codec.LegacyAmino, req interface{}) bool { body, err := ioutil.ReadAll(r.Body) if CheckBadRequestError(w, err) {