-
Notifications
You must be signed in to change notification settings - Fork 7
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
Reduce ethers #2415
Reduce ethers #2415
Conversation
✅ Deploy Preview for decent-interface-dev ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
if (validateENSName(values.destinationAddress) && publicClient) { | ||
const ensAddress = await publicClient.getEnsAddress({ name: values.destinationAddress }); | ||
if (ensAddress === null) { | ||
throw new Error('Invalid ENS name'); | ||
} | ||
destAddress = ensAddress; |
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.
We were using an ethers instance to do an ENS name lookup here, but there's a similar function on viem's public client
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.
Almost there...
I feel so hyped sir!
Thank you for this satisfying PR!
src/components/pages/DAOTreasury/hooks/useTreasuryLidoInteractions.ts
Outdated
Show resolved
Hide resolved
86805b3
to
3ffe821
Compare
@Da-Colon please re-review. |
Reduce and consolidate the usage of ethers to the bare minimum. Only thing blocking us from removing it entirely is our usage of
@snapshot-labs/snapshot.js
, which requires an instance ofethers.Providers.Web3Provider
into itsvote
function.