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
Improve validation of address with VerifyAddressFormat #677
Conversation
Codecov Report
@@ Coverage Diff @@
## master #677 +/- ##
==========================================
- Coverage 30.99% 30.91% -0.09%
==========================================
Files 144 144
Lines 6849 6858 +9
==========================================
- Hits 2123 2120 -3
- Misses 4620 4632 +12
Partials 106 106
Continue to review full report at Codecov.
|
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.
Looking great, thank you.
Can you make sure that there's adequate test coverage for the message validations?
See my note about the filters - I think that they can probably be left out of this PR. The semantics of querying should be:
- if the address is empty, don't filter on address
- if the address is non-empty and invalid, return an error
- if the address is non-empty and valid, filter on the address
Added few more cli tests for testing filters. Also verifying given owner address and if invalid, throwing error. This function will not change as I am validating given owner address before coming to this function. |
Perfect, thank you. |
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.
🚀
Fixes #571