You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
How can I handle the case where I want to reverse resolve my ens name, let's say
cien.eth
, calling thereverse(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 againthis._resolveSingle
-->findResolver()
passing thednsEncoded("")
.The problem arise inside the recursive function
findResolver
sincelabelLength == 0
and so returning the addrres(0) as the resolver. This cause the revert exeption inside the_resolve
method:Am I missing something? Any help or hint would be great
Thanks!
The text was updated successfully, but these errors were encountered: