Skip to content
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

Open
wants to merge 8 commits into
base: development
Choose a base branch
from

Conversation

JamesEarle
Copy link
Collaborator

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.

Copy link

codecov bot commented Jan 20, 2024

Codecov Report

Merging #99 (d9aeffa) into development (8f67434) will increase coverage by 0.00%.
Report is 2 commits behind head on development.
The diff coverage is 100.00%.

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           

Copy link

openzeppelin-code bot commented Jan 20, 2024

fix: Restrict registration for owners of parent domains

Generated at commit: d9aeffa5d160520163a456da804b0003d68eaef0

🚨 Report Summary

Severity Level Results
Contracts Critical
High
Medium
Low
Note
Total
0
0
0
5
22
27
Dependencies Critical
High
Medium
Low
Note
Total
0
0
0
2
27
29

For more details view the full report in OpenZeppelin Code Inspector

test/gas/gas-costs.json Outdated Show resolved Hide resolved
Copy link
Collaborator

@Whytecrowe Whytecrowe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants