mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 11:59:30 +00:00
linter warning clean up
This commit is contained in:
parent
98410ea8f0
commit
2a030bffba
1 changed files with 2 additions and 4 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue