mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-23 12:09:43 +00:00
CAKE-192 | fixed parse_address_from_domain.dart
This commit is contained in:
parent
008936435b
commit
6855a6d68b
1 changed files with 2 additions and 2 deletions
|
@ -17,7 +17,7 @@ Future<ParsedAddress> parseAddressFromDomain(
|
||||||
|
|
||||||
if (name.contains(topLevelDomain)) {
|
if (name.contains(topLevelDomain)) {
|
||||||
final address =
|
final address =
|
||||||
await fetchUnstoppableDomainAddress(formattedName, ticker);
|
await fetchUnstoppableDomainAddress(domain, ticker);
|
||||||
|
|
||||||
if (address?.isEmpty ?? true) {
|
if (address?.isEmpty ?? true) {
|
||||||
return ParsedAddress(address: domain);
|
return ParsedAddress(address: domain);
|
||||||
|
@ -25,7 +25,7 @@ Future<ParsedAddress> parseAddressFromDomain(
|
||||||
|
|
||||||
return ParsedAddress(
|
return ParsedAddress(
|
||||||
address: address,
|
address: address,
|
||||||
name: formattedName,
|
name: domain,
|
||||||
parseFrom: ParseFrom.unstoppableDomains);
|
parseFrom: ParseFrom.unstoppableDomains);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue