mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-31 16:09:49 +00:00
fix default eth node for ens
This commit is contained in:
parent
953cae3e48
commit
dff1ee2148
2 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue