ENS/Utils nameHash appends '.eth' to input name, breaking dnssec domain names
Opened this issue · 0 comments
bobwith2bees commented
This is just an observation that this will probably cause trouble for the additional domains ens now resolved.
nameHash function
Lines 11 to 13 in 6eeb85e
test/ens_dart_test.dart for coverage (note this still fails, but I suspect that is due to an older resolver contract integration.)
test('.getname on non.eth domain', () async {
// https://app.ens.domains/gregskril.com
// OffchainDNSResolver: 0xF142B308cF687d4358410a4cB885513b30A42025
final emptyName = await ens.withName('gregskril.com').getAddress();
print(emptyName);
expect(emptyName, EthereumAddress.fromHex('0x179A862703a4adfb29896552DF9e307980D19285'));
});