mirror of
https://github.com/aljazceru/breez-sdk-liquid.git
synced 2025-12-21 16:04:27 +01:00
fix: set PaymentDetails as mandatory, default to LiquidAddress (#474)
This commit is contained in:
@@ -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!}");
|
||||
|
||||
@@ -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!;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user