I am trying to call Resolution.reverse but it is failing some validation. I purchased a domain "gmuresan.blockchain", so when performing a reverse resolution, "0xC91DDAea75Ce715Eb9cb6DC9B5F087c471834b60" should resolve to "gmuresan.blockchain".
I followed the code and the correct metadata.name is being fetched, but then at the very end it is trying to compare this.namehash(metadata.name) to tokenId. They almost match completely except there is a missing 0 right after the "0x" of the hash.
It seems to be doing the decimal to hex conversion incorrectly at some point. The result of Resolution.reverse is an exception with the message "Service provider returned an invalid domain name".
I am trying to call Resolution.reverse but it is failing some validation. I purchased a domain "gmuresan.blockchain", so when performing a reverse resolution, "0xC91DDAea75Ce715Eb9cb6DC9B5F087c471834b60" should resolve to "gmuresan.blockchain".
I followed the code and the correct metadata.name is being fetched, but then at the very end it is trying to compare
this.namehash(metadata.name)
totokenId
. They almost match completely except there is a missing 0 right after the "0x" of the hash.It seems to be doing the decimal to hex conversion incorrectly at some point. The result of Resolution.reverse is an exception with the message "Service provider returned an invalid domain name".