From dff1ee2148f5752bb942a7396a8291be143d176e Mon Sep 17 00:00:00 2001 From: fosse Date: Fri, 29 Sep 2023 11:24:07 -0400 Subject: [PATCH] fix default eth node for ens --- lib/entities/ens_record.dart | 2 +- lib/entities/parse_address_from_domain.dart | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/entities/ens_record.dart b/lib/entities/ens_record.dart index 59ae6b9a4..ec5804425 100644 --- a/lib/entities/ens_record.dart +++ b/lib/entities/ens_record.dart @@ -14,7 +14,7 @@ class EnsRecord { } if (_client == null) { - _client = Web3Client("ethereum.publicnode.com", Client()); + _client = Web3Client("https://ethereum.publicnode.com", Client()); } try { diff --git a/lib/entities/parse_address_from_domain.dart b/lib/entities/parse_address_from_domain.dart index 7ea673995..86efec5a7 100644 --- a/lib/entities/parse_address_from_domain.dart +++ b/lib/entities/parse_address_from_domain.dart @@ -103,6 +103,7 @@ class AddressResolver { if (text.contains(".")) { var wallet = getIt.get().wallet!; final address = await EnsRecord.fetchEnsAddress(text, wallet: wallet); + print(address); if (address.isNotEmpty) { return ParsedAddress.fetchEnsAddress(name: text, address: address); }