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: [audit] ZNS-18 Approved Resolvers List #68

Merged
merged 5 commits into from
Nov 3, 2023

Conversation

JamesEarle
Copy link
Collaborator

@JamesEarle JamesEarle commented Oct 31, 2023

Add security by only letting approved resolvers be used in domain registration. So far there is a mapping thats string => address that will hold the string key of that specific resolver type e.g. address and the address of the approved resolver contract it points to. We will be able to expand on the list of resolvers in the future by using the addResolverType functionality.

As a result of this mapping, the ZNSRootRegistrar no longer needs to have a storage variable specifically for the address resolver. Instead, when we make a domain record that has a resolver, we get the resolver from that mapping and call to its set function.

@openzeppelin-code
Copy link

openzeppelin-code bot commented Oct 31, 2023

WIP ZNS-18 from audit

Generated at commit: bb9c7ec3b1f097461311203f1f4e834991f96957

🚨 Vulnerabilities Summary

Process Issues Results
Contract Inspector note
low
Total
21
5
26
Dependency Checker Total 0

For more details view the full report in OpenZeppelin Code

@JamesEarle JamesEarle changed the title WIP ZNS-18 from audit fix: [audit] ZNS-18 Approved Resolvers List Nov 2, 2023
Copy link

codecov bot commented Nov 2, 2023

Codecov Report

Merging #68 (bb9c7ec) into development (5b97484) will increase coverage by 0.00%.
The diff coverage is 98.94%.

Additional details and impacted files
@@             Coverage Diff              @@
##           development      #68   +/-   ##
============================================
  Coverage        99.79%   99.80%           
============================================
  Files               11       11           
  Lines              498      502    +4     
  Branches           124      124           
============================================
+ Hits               497      501    +4     
  Misses               1        1           

@jtulloch jtulloch merged commit a3acd34 into development Nov 3, 2023
1 of 2 checks passed
@zero-devops
Copy link
Collaborator

🎉 This PR is included in version 0.6.8 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

3 participants