review fixes
fosse committed
Oct 3, 2023 at 10:29 UTC
cb48d73ae0c979e96df2cdc31360572a87f92df2
3 files changed
+2
-19
cw_ethereum/lib/ethereum_client.dart
+1
-16
@@ -209,22 +209,7 @@ I/flutter ( 4474): Gas Used: 53000
209
}
210
}
211
212
- Future<String> checkEnsName(String ensName) async {
213
- if (_client == null) {
214
- return "";
215
- }
216
- try {
217
- final ens = Ens(client: _client!);
218
-
219
- final addr = await ens.withName(ensName).getAddress();
220
- return addr.hex;
221
- } catch (e) {
222
- print(e);
223
- return "";
224
- }
225
- }
226
-
227
- dynamic getWeb3Client() {
212
+ Web3Client? getWeb3Client() {
213
return _client;
214
}
215
cw_ethereum/lib/ethereum_wallet.dart
+1
-1
@@ -509,5 +509,5 @@ abstract class EthereumWalletBase
509
String signMessage(String message, {String? address = null}) =>
510
bytesToHex(_ethPrivateKey.signPersonalMessageToUint8List(ascii.encode(message)));
511
512
- dynamic getWeb3Client() => _client.getWeb3Client();
512
+ Web3Client? getWeb3Client() => _client.getWeb3Client();
513
}
lib/entities/ens_record.dart
-2
@@ -20,8 +20,6 @@ class EnsRecord {
20
try {
21
final ens = Ens(client: _client);
22
23
- dynamic res;
24
-
23
if (wallet != null) {
24
switch (wallet.type) {
25
case WalletType.monero: