-
Notifications
You must be signed in to change notification settings - Fork 6
Domain support #271
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
base: develop
Are you sure you want to change the base?
Domain support #271
Conversation
Upgrade to node 18 - fix bigint issues
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
| const output = useAddressLookup(inputValue); | ||
| const { resolvedDomain, errorMessage } = output; | ||
|
|
||
| console.log("resolved domain error", errorMessage); |
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.
Please remove this and the commented lines below
|
|
||
| useEffect(() => { | ||
| const address = safeParsePublicKey(resolvedDomain); | ||
| console.log("address is ", address); |
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.
see above
| }); | ||
| } | ||
| setInputValue(addressString); | ||
| // const address = safeParsePublicKey(addressString); |
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.
please remove if not needed
| } else return null; | ||
| }; | ||
|
|
||
| useEffect(() => { |
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.
you can probably simplify these a little - rather than having three useEffects, you can probably just have one, which calls walletNameToAddressAndProfilePicture if the inputProp is a domain. I don't think you need to store the intermediary results walletDomainName and resolvedDomain in state hooks.
Feat: added Domain support