fix default eth node for ens

This commit is contained in:
fosse 2023-09-29 11:24:07 -04:00
parent 953cae3e48
commit dff1ee2148
2 changed files with 2 additions and 1 deletions

View file

@ -14,7 +14,7 @@ class EnsRecord {
}
if (_client == null) {
_client = Web3Client("ethereum.publicnode.com", Client());
_client = Web3Client("https://ethereum.publicnode.com", Client());
}
try {

View file

@ -103,6 +103,7 @@ class AddressResolver {
if (text.contains(".")) {
var wallet = getIt.get<AppStore>().wallet!;
final address = await EnsRecord.fetchEnsAddress(text, wallet: wallet);
print(address);
if (address.isNotEmpty) {
return ParsedAddress.fetchEnsAddress(name: text, address: address);
}