Skip to content

feat(web3-shared): add useResolveEns for resolving ens - #3793

Closed
UncleBill wants to merge 2 commits into
developfrom
feat/add-hook-to-resolve-ens
Closed

feat(web3-shared): add useResolveEns for resolving ens#3793
UncleBill wants to merge 2 commits into
developfrom
feat/add-hook-to-resolve-ens

Conversation

@UncleBill

Copy link
Copy Markdown
Contributor

get the address of vgod (vitalik.eth)

image

part of #3767

Comment thread packages/web3-shared/src/hooks/useResolveEns.ts Outdated
const web3 = useWeb3()

return useAsyncRetry(async () => {
return await web3.eth.ens.getAddress(name)

@guanbinrui guanbinrui Jul 30, 2021

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

  • Test with Maskbook provider.
  • Test with MetaMask provider.
  • Test with WalletConnect provider.

Should a new RPC method be added into network.ts?

@UncleBill

Copy link
Copy Markdown
Contributor Author

Will come along with #3804. Closing this.

@UncleBill UncleBill closed this Aug 2, 2021
@UncleBill
UncleBill deleted the feat/add-hook-to-resolve-ens branch August 2, 2021 08:52
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.

2 participants