mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-12-02 12:14:09 +01:00
review fixes
This commit is contained in:
@@ -209,22 +209,7 @@ I/flutter ( 4474): Gas Used: 53000
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<String> checkEnsName(String ensName) async {
|
Web3Client? getWeb3Client() {
|
||||||
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() {
|
|
||||||
return _client;
|
return _client;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -509,5 +509,5 @@ abstract class EthereumWalletBase
|
|||||||
String signMessage(String message, {String? address = null}) =>
|
String signMessage(String message, {String? address = null}) =>
|
||||||
bytesToHex(_ethPrivateKey.signPersonalMessageToUint8List(ascii.encode(message)));
|
bytesToHex(_ethPrivateKey.signPersonalMessageToUint8List(ascii.encode(message)));
|
||||||
|
|
||||||
dynamic getWeb3Client() => _client.getWeb3Client();
|
Web3Client? getWeb3Client() => _client.getWeb3Client();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,8 +20,6 @@ class EnsRecord {
|
|||||||
try {
|
try {
|
||||||
final ens = Ens(client: _client);
|
final ens = Ens(client: _client);
|
||||||
|
|
||||||
dynamic res;
|
|
||||||
|
|
||||||
if (wallet != null) {
|
if (wallet != null) {
|
||||||
switch (wallet.type) {
|
switch (wallet.type) {
|
||||||
case WalletType.monero:
|
case WalletType.monero:
|
||||||
|
|||||||
Reference in New Issue
Block a user