mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 12:29:51 +00:00
review fixes
This commit is contained in:
parent
e83063535e
commit
cb48d73ae0
3 changed files with 2 additions and 19 deletions
|
@ -209,22 +209,7 @@ I/flutter ( 4474): Gas Used: 53000
|
|||
}
|
||||
}
|
||||
|
||||
Future<String> checkEnsName(String ensName) async {
|
||||
if (_client == null) {
|
||||
return "";
|
||||
}
|
||||
try {
|
||||
final ens = Ens(client: _client!);
|
||||
|
||||
final addr = await ens.withName(ensName).getAddress();
|
||||
return addr.hex;
|
||||
} catch (e) {
|
||||
print(e);
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
dynamic getWeb3Client() {
|
||||
Web3Client? getWeb3Client() {
|
||||
return _client;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue