-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Better errors for un-configured ENS names #1066
Comments
That should definitely work. I use it all the time. Is the ens name configured? If an ens name doesn’t have a resolver or an addr entry it will return null. The library probably should throw, in theses cases, a better error than allow the address coder to start the error chain... |
The only places an ens name cannot be used is when it is required synchronously. Like in |
Thanks, I found out that I did not had the Man, really, you have done such an amazing library! I'm so overwhelmed with this one. Actually I overrided the
That could be actually helpful. We can leave this issue open if in future this is desired to be addressed. |
Yeah, a better error should only take like 4 minutes and I know exactly where to add it. :) I just need to finish the new publish script to match the new build script and I’ll add this. Sure, open a new issue to track it. :) Glad you enjoy the library! :) |
This has been published in 5.0.15. Try it out and let me know if there are any issues. Thanks! :) |
The documentation at https://docs.ethers.io/v5/api/providers/provider/#Provider--ens-methods mentions that:
Some examples I tried it on:
new Contract(abi, address)
,provider.getBalance(address)
. And it works there, so awesome!But when I did with a contract method:
Is this expected?
Also seems like the value of address is being taken as
null
.The text was updated successfully, but these errors were encountered: