linter warning clean up

This commit is contained in:
julian 2024-04-15 10:31:57 -06:00
parent 98410ea8f0
commit 2a030bffba

View file

@ -34,7 +34,7 @@ import 'package:stream_channel/stream_channel.dart';
mixin ElectrumXInterface<T extends Bip39HDCurrency> on Bip39HDWallet<T> { mixin ElectrumXInterface<T extends Bip39HDCurrency> on Bip39HDWallet<T> {
late ElectrumXClient electrumXClient; late ElectrumXClient electrumXClient;
late StreamChannel electrumAdapterChannel; late StreamChannel<dynamic> electrumAdapterChannel;
late ElectrumClient electrumAdapterClient; late ElectrumClient electrumAdapterClient;
late CachedElectrumXClient electrumXCachedClient; late CachedElectrumXClient electrumXCachedClient;
// late SubscribableElectrumXClient subscribableElectrumXClient; // late SubscribableElectrumXClient subscribableElectrumXClient;
@ -906,7 +906,7 @@ mixin ElectrumXInterface<T extends Bip39HDCurrency> on Bip39HDWallet<T> {
final newNode = await _getCurrentElectrumXNode(); final newNode = await _getCurrentElectrumXNode();
try { try {
await electrumXClient.electrumAdapterClient?.close(); await electrumXClient.electrumAdapterClient?.close();
} catch (e, s) { } catch (e) {
if (e.toString().contains("initialized")) { if (e.toString().contains("initialized")) {
// Ignore. This should happen every first time the wallet is opened. // Ignore. This should happen every first time the wallet is opened.
} else { } else {
@ -1189,8 +1189,6 @@ mixin ElectrumXInterface<T extends Bip39HDCurrency> on Bip39HDWallet<T> {
coin: cryptoCurrency.coin, coin: cryptoCurrency.coin,
); );
print("txn: $txn");
final vout = jsonUTXO["tx_pos"] as int; final vout = jsonUTXO["tx_pos"] as int;
final outputs = txn["vout"] as List; final outputs = txn["vout"] as List;