prevent fillint empty addresses

This commit is contained in:
fosse 2023-09-29 11:28:23 -04:00
parent 2775e1d9f8
commit c71e4b4689

View file

@ -103,7 +103,7 @@ class AddressResolver {
if (text.contains(".")) { if (text.contains(".")) {
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) { if (address.isNotEmpty && address != "0x0000000000000000000000000000000000000000") {
return ParsedAddress.fetchEnsAddress(name: text, address: address); return ParsedAddress.fetchEnsAddress(name: text, address: address);
} }
} }