mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 09:47:37 +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) {
|
||||
// set to true if any inputs were detected as owned by this wallet
|
||||
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
|
||||
bool wasReceivedInThisWallet = false;
|
||||
|
@ -2130,7 +2128,6 @@ class BitcoinCashWallet extends CoinServiceAPI
|
|||
|
||||
if (allAddressesSet.intersection(input.addresses.toSet()).isNotEmpty) {
|
||||
wasSentFromThisWallet = true;
|
||||
amountSentFromThisWallet += input.value;
|
||||
input = input.copyWith(walletOwns: true);
|
||||
}
|
||||
|
||||
|
@ -2165,15 +2162,10 @@ class BitcoinCashWallet extends CoinServiceAPI
|
|||
outputs.add(output);
|
||||
}
|
||||
|
||||
final totalIn = inputs
|
||||
.map((e) => e.value)
|
||||
.reduce((value, element) => value += element);
|
||||
final totalOut = outputs
|
||||
.map((e) => e.value)
|
||||
.reduce((value, element) => value += element);
|
||||
|
||||
final fee = totalIn - totalOut;
|
||||
|
||||
isar_models.TransactionType type;
|
||||
isar_models.TransactionSubType subType =
|
||||
isar_models.TransactionSubType.none;
|
||||
|
|
Loading…
Reference in a new issue