mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-18 08:45:05 +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,7 +244,9 @@ class AddressResolver {
|
|||
if (unstoppableDomains.any((domain) => name.trim() == domain)) {
|
||||
if (settingsStore.lookupsUnstoppableDomains) {
|
||||
final address = await fetchUnstoppableDomainAddress(text, ticker);
|
||||
return ParsedAddress.fetchUnstoppableDomainAddress(address: address, name: text);
|
||||
if (address.isNotEmpty) {
|
||||
return ParsedAddress.fetchUnstoppableDomainAddress(address: address, name: text);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -257,12 +259,25 @@ class AddressResolver {
|
|||
}
|
||||
}
|
||||
|
||||
print("@@@@@@@@");
|
||||
print(formattedName);
|
||||
print(domainParts);
|
||||
print(name);
|
||||
|
||||
if (formattedName.contains(".")) {
|
||||
if (settingsStore.lookupsOpenAlias) {
|
||||
final txtRecord = await OpenaliasRecord.lookupOpenAliasRecord(formattedName);
|
||||
|
||||
print("@@@@@@@@");
|
||||
print(txtRecord);
|
||||
if (txtRecord != null) {
|
||||
final record = await OpenaliasRecord.fetchAddressAndName(
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue