-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validate tx/sign body and use BaseReq #3176
Comments
5 tasks
Awesome! While we're at it, can we also update I kept trying to submit a send tx but kept getting a 400 and it was not obvious to me what was wrong. |
alessio
pushed a commit
that referenced
this issue
Dec 20, 2018
alessio
pushed a commit
that referenced
this issue
Dec 27, 2018
jackzampolin
added a commit
that referenced
this issue
Jan 3, 2019
* validate sign tx request's body Closes: #3176 * Introduce CodeNoSignatures * Update swagger.yaml * Fix tests * Update x/auth/client/rest/sign.go Co-Authored-By: alessio <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
POST body is not validated because it doesn't use
BaseReq
nor theStdTx.ValidateBasic()
Problem Definition
We are using
SignBody
forPOST tx/sign
but theStdTx
is not validated at any point of the request.cosmos-sdk/x/auth/client/rest/sign.go
Lines 15 to 24 in c9ef680
Proposal
Use
BaseReq
with its validation function and useStdTx.Validate()
to validate the transaction.For Admin Use
The text was updated successfully, but these errors were encountered: