Open gbonumore opened 1 year ago
@gbonumore thanks for reporting this issue. I am a little unclear, are you thinkingwe need to update our version of ethers to return the updated IPNS? Does this error happen when connecting a wallet or at some other point? Are you seeing the same issue on our demo here? I am able to connect my wallet and see my avatar and ens at the demo notes above on Goerli. I also dont get an error when connecting to onboard.blocknative.com with an Eth account and associated avatar and ens.
I made this a little unclear, my ens domain contains a content hash record which starts with ipns:// (I am using eth.limo to serve a dapp through my ens handle, myhandle.eth.limo, which points to the ipns in question) That's why it matches ipns scheme, 0xe5010172, which was not supported on the ethers.js version used on this library. If I of course remove that contenthash the resolver wouldn't break. Let me know if further informations are needed.
Current Behavior
Using @web3-onboard/react, ENS name and avatar resolution is broken.
Expected Behavior
It is possible to retrieve ENS name and avatar. The issue comes from the version of ethers.js used in which method
getContentHash()
doesn't recognize IPNS, which was introduced on a later version of ethers.Steps To Reproduce
Error can be seen here: https://onboard.blocknative.com/examples/connect-wallet while connecting with a wallet which has a ENS name which gets resolved in a content hash data starting with
0xe5010172
.What package is effected by this issue?
@web3-onboard/react
Is this a build or a runtime issue?
Runtime
Package Version
2.8.5
Node Version
No response
What browsers are you seeing the problem on?
Chrome
Relevant log output
Anything else?
Sanity Check