fix: set PaymentDetails as mandatory, default to LiquidAddress (#474)

This commit is contained in:
yse
2024-09-09 13:00:22 +02:00
committed by GitHub
parent fc820176a1
commit 2dc3d57309
20 changed files with 161 additions and 295 deletions

View File

@@ -36,8 +36,6 @@ class PaymentItem extends StatelessWidget {
void _onLongPress(BuildContext context) {
final details = item.details;
if (details == null) return;
if (details is PaymentDetails_Lightning && details.preimage != null) {
try {
debugPrint("Store payment preimage on clipboard. Preimage: ${details.preimage!}");

View File

@@ -34,7 +34,6 @@ class _ReceivePaymentDialogState extends State<ReceivePaymentDialog> {
if (paymentList.any(
(e) {
final details = e.details;
if (details == null) return false;
if (details is PaymentDetails_Lightning && details.preimage != null) {
return details.preimage! == invoiceDestination!;
}