-
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
[R4R] Transaction ValidateBasic #2863
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #2863 +/- ##
=========================================
Coverage ? 56.9%
=========================================
Files ? 120
Lines ? 8278
Branches ? 0
=========================================
Hits ? 4711
Misses ? 3249
Partials ? 318 |
CI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should move one check into ValidateBasic
- otherwise LGTM.
|
||
// ValidateBasic does a simple and lightweight validation check that doesn't | ||
// require access to any other information. | ||
ValidateBasic() Error |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know that it's been quite conventional so far to call this ValidateBasic
. Though I've never seen any other function being called ValidateAdvanced
:)
So why not naming this Validate
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lol...touché. Perhaps for another PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah definitely not a blocking issue 👍
@cwgoes addressed your review |
ACK, this should see one more review (perhaps @alessio). |
ValidateBasic
to thesdk.Tx
interfaceauth.StdTx
to implement said interfaceValidateBasic
.BaseApp
, but having in the ante handler paved the way of least resistance in terms of changing unit tests.closes: #2779
Targeted PR against correct branch (see CONTRIBUTING.md)
Linked to github-issue with discussion and accepted design OR link to spec that describes this work.
Wrote tests
Updated relevant documentation (
docs/
)Added entries in
PENDING.md
with issue #rereviewed
Files changed
in the github PR explorerFor Admin Use: