ensdomains / ens-contracts

The core contracts of the ENS protocol
https://ens.domains/
MIT License
579 stars 398 forks source link

Solidity Punycode Decoder #124

Open adraffy opened 2 years ago

adraffy commented 2 years ago

It only took 4 years!

This is a single label decoderstring → do nothing, decode, or revert (invalid punycode)

https://goerli.etherscan.io/address/0xaf7f1fa8d5df0d9316394433e841321160408565#code

Arachnid commented 2 years ago

I am astonished it's that short! Are you prepared to put together a PR with some tests?

adraffy commented 2 years ago

I'm not sure if I know enough about how everything is organized, but I can PR the independent contract and provide some Javascript tests.