Arachnid / eth-ens-namehash

A javascript module for generating ENS namehashes per spec https://github.com/ethereum/EIPs/issues/137
42 stars 46 forks source link

idna-uts46 crashes for some emojis #25

Open mdtanrikulu opened 3 years ago

mdtanrikulu commented 3 years ago

Current version of idna-uts46 raises an error for some of the emojis, like this one -> 🦚. I haven't really checked exactly on which version this issue has been fixed, but I can tell that on the latest one this one works as expected.

This is the part of the code causing the issue in current version.

uts46.toUnicode(name, {useStd3ASCII: true, transitional: false})

Mentioned here: ensdomains/ens-app#1167

NickKelly1 commented 2 years ago

same issue here

this error is occurring frequently