mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-18 08:45:05 +00:00
limit ens to just .eth domains
This commit is contained in:
parent
c71e4b4689
commit
183d0be20b
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ class AddressResolver {
|
||||||
return ParsedAddress.fetchUnstoppableDomainAddress(address: address, name: text);
|
return ParsedAddress.fetchUnstoppableDomainAddress(address: address, name: text);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (text.contains(".")) {
|
if (text.endsWith(".eth")) {
|
||||||
var wallet = getIt.get<AppStore>().wallet!;
|
var wallet = getIt.get<AppStore>().wallet!;
|
||||||
final address = await EnsRecord.fetchEnsAddress(text, wallet: wallet);
|
final address = await EnsRecord.fetchEnsAddress(text, wallet: wallet);
|
||||||
if (address.isNotEmpty && address != "0x0000000000000000000000000000000000000000") {
|
if (address.isNotEmpty && address != "0x0000000000000000000000000000000000000000") {
|
||||||
|
|
Loading…
Reference in a new issue