mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-31 06:55:59 +00:00
fix openAlias resolver not being reached
Some checks are pending
Cache Dependencies / test (push) Waiting to run
Some checks are pending
Cache Dependencies / test (push) Waiting to run
This commit is contained in:
parent
831a6d9f9a
commit
eb8c6a76e2
1 changed files with 16 additions and 1 deletions
|
@ -244,9 +244,11 @@ class AddressResolver {
|
||||||
if (unstoppableDomains.any((domain) => name.trim() == domain)) {
|
if (unstoppableDomains.any((domain) => name.trim() == domain)) {
|
||||||
if (settingsStore.lookupsUnstoppableDomains) {
|
if (settingsStore.lookupsUnstoppableDomains) {
|
||||||
final address = await fetchUnstoppableDomainAddress(text, ticker);
|
final address = await fetchUnstoppableDomainAddress(text, ticker);
|
||||||
|
if (address.isNotEmpty) {
|
||||||
return ParsedAddress.fetchUnstoppableDomainAddress(address: address, name: text);
|
return ParsedAddress.fetchUnstoppableDomainAddress(address: address, name: text);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (text.endsWith(".eth")) {
|
if (text.endsWith(".eth")) {
|
||||||
if (settingsStore.lookupsENS) {
|
if (settingsStore.lookupsENS) {
|
||||||
|
@ -257,12 +259,25 @@ class AddressResolver {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
print("@@@@@@@@");
|
||||||
|
print(formattedName);
|
||||||
|
print(domainParts);
|
||||||
|
print(name);
|
||||||
|
|
||||||
if (formattedName.contains(".")) {
|
if (formattedName.contains(".")) {
|
||||||
if (settingsStore.lookupsOpenAlias) {
|
if (settingsStore.lookupsOpenAlias) {
|
||||||
final txtRecord = await OpenaliasRecord.lookupOpenAliasRecord(formattedName);
|
final txtRecord = await OpenaliasRecord.lookupOpenAliasRecord(formattedName);
|
||||||
|
|
||||||
|
print("@@@@@@@@");
|
||||||
|
print(txtRecord);
|
||||||
if (txtRecord != null) {
|
if (txtRecord != null) {
|
||||||
final record = await OpenaliasRecord.fetchAddressAndName(
|
final record = await OpenaliasRecord.fetchAddressAndName(
|
||||||
formattedName: formattedName, ticker: ticker.toLowerCase(), txtRecord: txtRecord);
|
formattedName: formattedName, ticker: ticker.toLowerCase(), txtRecord: txtRecord);
|
||||||
|
print("@@@@@@@@");
|
||||||
|
print(record);
|
||||||
|
print(record.name);
|
||||||
|
print(record.address);
|
||||||
|
print(record.description);
|
||||||
return ParsedAddress.fetchOpenAliasAddress(record: record, name: text);
|
return ParsedAddress.fetchOpenAliasAddress(record: record, name: text);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue