-
Notifications
You must be signed in to change notification settings - Fork 3
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
fix: Restrict registration for owners of parent domains #99
base: development
Are you sure you want to change the base?
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## development #99 +/- ##
============================================
Coverage 99.80% 99.80%
============================================
Files 11 11
Lines 512 515 +3
Branches 127 128 +1
============================================
+ Hits 511 514 +3
Misses 1 1 |
fix: Restrict registration for owners of parent domains
🚨 Report Summary
For more details view the full report in OpenZeppelin Code Inspector |
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.
comments
This makes it so you can only mint free subdomains if you own both the ERC721 token and the domain name in the record held by the ZNSRegistry, solving a potential issue that comes from a token being transferred in a sale on a third party exchange like OpenSea and that new owner not calling to
reclaim
their ownership of the domain. In this case, the previous owner would still be allowed to register subdomains for free.