-
-
Notifications
You must be signed in to change notification settings - Fork 5
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: use native contract functionality to perform lookups #9
base: main
Are you sure you want to change the base?
Conversation
Note: this would serve both as an ENS conversion plugin, and also as an SDK for working with ENS contracts! |
pass | ||
|
||
|
||
def normalize_name(name: str) -> str: |
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.
Add note about copying from web3py, as well as using EIP-162 to design functionality.
|
||
# NOTE: ENS Only references data from Ethereum Mainnet | ||
registrar_deployment = list(ENS_PACKAGE.deployments.values())[0]["Registrar"] | ||
with self.networks.ethereum.mainnet.use_provider( |
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.
If we are already connected to mainnet, we could just use the active provider and not have to make 2 connections
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.
Fair, although this seems like an optimization to make to the context manager
What I did
fixes: #7
How I did it
How to verify it
Checklist