-
Notifications
You must be signed in to change notification settings - Fork 40
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
Adding Player Handles #136
Conversation
I need your review on this before proceeding @norswap , Also I'm encountering errors setting up the webapp |
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.
Great work! Sorry again for the delay. Could you make the requested changes? I'll make sure to prioritize reviewing them now.
if (b.length < 5) return false; | ||
for (uint256 i; i < b.length; i++) { | ||
bytes1 char = b[i]; | ||
if (char < 0x20 || char > 0x7E || char == 0x2E) { |
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.
Note to myself: will probably want to change this to only support alphanumerics & dashes, underscores, square brackets (for cute clan names), spaces (but not more than one in a row, and not at the end or at the start of the handle), as well as put a max character limit.
Fine to leave this as is for this PR.
Hi Sir I'd get started on these and update, sorry for the delay |
Hi Sir, I have made requested corrections |
Great work! Could you just make sure the Mock ENS resolver is logged + included in deployments.ts as well? |
Also it seems you've made changes to the lockfile, could just revert it to the master version so that no changes show? The current file seems incorrect in some way, as shown by the failing CI check. |
Hi Sir, I didn't make any changes to the lockfile and can't seem to understand how to rectify it. |
That was probably accidental, you can see it is changed in "Files changes" here on Github. Fixing it requires a little bit of git foo: (The 7 here is the number of commits you've made, so if you add additional commits in between you need to update that number.) Then finally |
:wq :
done sir |
Hello sir @norswap |
Thanks! Did some extra cleanup and merged here: #137 |
Context (Problem, Motivation, Solution)
Link related issues!
Issue 117
Describe Your Changes
I added the smart contract to implement Player handles and wrote the tests to check the functions work properly
Checklist
make check
and fixed resulting issuesTesting
If you didn't write tests, explain how you made sure the code was correct and working as intended.