mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-27 12:45:52 +00:00
remove unused vars
This commit is contained in:
parent
c761b9ae65
commit
355c247275
1 changed files with 0 additions and 8 deletions
|
@ -2071,8 +2071,6 @@ class BitcoinCashWallet extends CoinServiceAPI
|
||||||
for (final txData in allTransactions) {
|
for (final txData in allTransactions) {
|
||||||
// set to true if any inputs were detected as owned by this wallet
|
// set to true if any inputs were detected as owned by this wallet
|
||||||
bool wasSentFromThisWallet = false;
|
bool wasSentFromThisWallet = false;
|
||||||
BigInt amountSentFromThisWallet =
|
|
||||||
BigInt.zero; // unsure if needed. Not used rn
|
|
||||||
|
|
||||||
// set to true if any outputs were detected as owned by this wallet
|
// set to true if any outputs were detected as owned by this wallet
|
||||||
bool wasReceivedInThisWallet = false;
|
bool wasReceivedInThisWallet = false;
|
||||||
|
@ -2130,7 +2128,6 @@ class BitcoinCashWallet extends CoinServiceAPI
|
||||||
|
|
||||||
if (allAddressesSet.intersection(input.addresses.toSet()).isNotEmpty) {
|
if (allAddressesSet.intersection(input.addresses.toSet()).isNotEmpty) {
|
||||||
wasSentFromThisWallet = true;
|
wasSentFromThisWallet = true;
|
||||||
amountSentFromThisWallet += input.value;
|
|
||||||
input = input.copyWith(walletOwns: true);
|
input = input.copyWith(walletOwns: true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2165,15 +2162,10 @@ class BitcoinCashWallet extends CoinServiceAPI
|
||||||
outputs.add(output);
|
outputs.add(output);
|
||||||
}
|
}
|
||||||
|
|
||||||
final totalIn = inputs
|
|
||||||
.map((e) => e.value)
|
|
||||||
.reduce((value, element) => value += element);
|
|
||||||
final totalOut = outputs
|
final totalOut = outputs
|
||||||
.map((e) => e.value)
|
.map((e) => e.value)
|
||||||
.reduce((value, element) => value += element);
|
.reduce((value, element) => value += element);
|
||||||
|
|
||||||
final fee = totalIn - totalOut;
|
|
||||||
|
|
||||||
isar_models.TransactionType type;
|
isar_models.TransactionType type;
|
||||||
isar_models.TransactionSubType subType =
|
isar_models.TransactionSubType subType =
|
||||||
isar_models.TransactionSubType.none;
|
isar_models.TransactionSubType.none;
|
||||||
|
|
Loading…
Reference in a new issue