-
Notifications
You must be signed in to change notification settings - Fork 48
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
refactor: disallow non alphanumeric symbols #945
Conversation
6678396
to
7a23821
Compare
7a23821
to
c0d1ed3
Compare
refactor: alphabetical ordering refactor: return different string test: thorough concrete tests for "isAlphanumeric"
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.
Thanks for the lift-off, @andreivladbrg. I have made several additions and changes:
- Simplified the implementation using OR operators instead of AND
- Added thorough concrete units
- Added fuzz tests
caf20fc
to
ffcd915
Compare
Separately, I opened feature requests in OpenZeppelin and Solady for implementing alphanumeric check functions: |
test: fuzz tests for "isAlphanumeric" test: shared test contract for NFT descriptor
ffcd915
to
b3ff329
Compare
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.
Beautiful.
Should we allow From Egis audit report:
Also, even Sablier NFT contains Fixed in #960. |
I agree with adding support for |
* refactor: disallow non alphanumeric symbols * feat: allow empty spaces in "isAlphanumeric" refactor: alphabetical ordering refactor: return different string test: thorough concrete tests for "isAlphanumeric" * refactor: simplify logical conditions test: fuzz tests for "isAlphanumeric" test: shared test contract for NFT descriptor --------- Co-authored-by: Paul Razvan Berg <prberg@proton.me>
* refactor: disallow non alphanumeric symbols * feat: allow empty spaces in "isAlphanumeric" refactor: alphabetical ordering refactor: return different string test: thorough concrete tests for "isAlphanumeric" * refactor: simplify logical conditions test: fuzz tests for "isAlphanumeric" test: shared test contract for NFT descriptor --------- Co-authored-by: Paul Razvan Berg <prberg@proton.me>
We still need to make a decision, but this PR solves this finding: https://www.codehawks.com/report/clvb9njmy00012dqjyaavpl44#M-01