mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-03-12 09:32:33 +00:00
save
This commit is contained in:
parent
8ed1daaa12
commit
58a81b8576
1 changed files with 5 additions and 9 deletions
|
@ -267,17 +267,13 @@ abstract class LightningWalletBase
|
|||
}
|
||||
|
||||
Map<String, LightningTransactionInfo> convertToTxInfo(List<Payment> payments) {
|
||||
Map<String, LightningTransactionInfo> transactions = {};
|
||||
Map<String, LightningTransactionInfo> transactions = {};
|
||||
|
||||
for (var tx in payments) {
|
||||
var details = tx.details.data as LnPaymentDetails;
|
||||
bool isSend = false;
|
||||
if (details.lnAddress?.isNotEmpty ?? false) {
|
||||
isSend = true;
|
||||
}
|
||||
if (details.lnurlMetadata?.isNotEmpty ?? false) {
|
||||
isSend = true;
|
||||
for (Payment tx in payments) {
|
||||
if (tx.paymentType == PaymentType.ClosedChannel) {
|
||||
continue;
|
||||
}
|
||||
bool isSend = tx.paymentType == PaymentType.Sent;
|
||||
transactions[tx.id] = LightningTransactionInfo(
|
||||
WalletType.lightning,
|
||||
isPending: false,
|
||||
|
|
Loading…
Reference in a new issue