Skip to content
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

Universal Resolver reverse resolution without SetName or Claim #390

Open
cienhub opened this issue Oct 24, 2024 · 0 comments
Open

Universal Resolver reverse resolution without SetName or Claim #390

cienhub opened this issue Oct 24, 2024 · 0 comments

Comments

@cienhub
Copy link

cienhub commented Oct 24, 2024

How can I handle the case where I want to reverse resolve my ens name, let's say cien.eth, calling the reverse(dnsEnconded(reverseRecord)) method on the Universal Resolver?
I'm expecting to get an empty string (as I get) since I've not set any records or resolver for this domain.

Expeted Behaviour: since the Universal Resolver uses the Wildcard Resolution as per ENSIP-10 it should find a resolver for the REVERSE_NODE and use that to return me an empty string without reverting.

Actual Behaviour: the call reverted when it enter in the getForwardDataFromReverse where, after succesfully finding and returning a resolvedData, it calls again this._resolveSingle --> findResolver() passing the dnsEncoded("").

The problem arise inside the recursive function findResolver since labelLength == 0 and so returning the addrres(0) as the resolver. This cause the revert exeption inside the _resolve method:

if (resolverAddress == address(0)) {
            revert ResolverNotFound();
}

Am I missing something? Any help or hint would be great
Thanks!

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

No branches or pull requests

2 participants
@cienhub and others