mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-17 01:37:40 +00:00
minor fix - 2
This commit is contained in:
parent
45f229123f
commit
ac6dc67356
1 changed files with 10 additions and 17 deletions
|
@ -657,23 +657,16 @@ abstract class LitecoinWalletBase extends ElectrumWallet with Store {
|
|||
tx.outputs = resp.outputId;
|
||||
return tx
|
||||
..addListener((transaction) async {
|
||||
print("LISTENER CALLED @@@@@@@@@@@@@@@@@@");
|
||||
// final addresses = <String>{};
|
||||
// transaction.inputAddresses?.forEach((id) async {
|
||||
// final utxo = mwebUtxosBox.get(id);
|
||||
// await mwebUtxosBox.delete(id);
|
||||
// if (utxo == null) return;
|
||||
// final addressRecord = walletAddresses.allAddresses
|
||||
// .firstWhere((addressRecord) => addressRecord.address == utxo.address);
|
||||
// if (!addresses.contains(utxo.address)) {
|
||||
// addressRecord.txCount++;
|
||||
// print("COUNT UPDATED HERE 1!!!!! ${addressRecord.address} ${addressRecord.txCount} !!!!!!");
|
||||
// addresses.add(utxo.address);
|
||||
// }
|
||||
// addressRecord.balance -= utxo.value.toInt();
|
||||
// });
|
||||
// transaction.inputAddresses?.addAll(addresses);
|
||||
// print("BEING ADDED HERE@@@@@@@@@@@@@@@@@@@@@@@3");
|
||||
final addresses = <String>{};
|
||||
transaction.inputAddresses?.forEach((id) async {
|
||||
final utxo = mwebUtxosBox.get(id);
|
||||
await mwebUtxosBox.delete(id);
|
||||
if (utxo == null) return;
|
||||
if (!addresses.contains(utxo.address)) {
|
||||
addresses.add(utxo.address);
|
||||
}
|
||||
});
|
||||
transaction.inputAddresses?.addAll(addresses);
|
||||
|
||||
transactionHistory.addOne(transaction);
|
||||
await updateUnspent();
|
||||
|
|
Loading…
Reference in a new issue