mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
fix default eth node for ens
This commit is contained in:
@@ -14,7 +14,7 @@ class EnsRecord {
|
||||
}
|
||||
|
||||
if (_client == null) {
|
||||
_client = Web3Client("ethereum.publicnode.com", Client());
|
||||
_client = Web3Client("https://ethereum.publicnode.com", Client());
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user