From 1264fdbaa0b9ef9b2803d1079b33093fc2987591 Mon Sep 17 00:00:00 2001 From: Omar Date: Fri, 5 Jun 2026 15:30:46 +0200 Subject: [PATCH] remove old ln hack in scan parsing logic --- .../action_row/coin_action_row.dart | 23 ++++++++++--------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/lib/new-ui/widgets/coins_page/action_row/coin_action_row.dart b/lib/new-ui/widgets/coins_page/action_row/coin_action_row.dart index 7ac50523b..db877e1e2 100644 --- a/lib/new-ui/widgets/coins_page/action_row/coin_action_row.dart +++ b/lib/new-ui/widgets/coins_page/action_row/coin_action_row.dart @@ -163,17 +163,18 @@ class CoinActionRow extends StatelessWidget { late final PaymentRequest req; var unspentCoinType = UnspentCoinType.any; - if (SendViewModelBase.isNonZeroAmountLightningInvoice(code)) { - unspentCoinType = UnspentCoinType.lightning; - final amount = CryptoCurrency.btcln.formatAmount(BigInt.from(getBolt11Amount(code) ?? 0)); - req = PaymentRequest(code, amount, "", "", ""); - } else if (SendViewModelBase.isLnurlInvoice(code)) { - unspentCoinType = UnspentCoinType.lightning; - final amount = CryptoCurrency.btcln.formatAmount(BigInt.from(await LNURL.getPayRequestAmount(code) ?? 0)); - req = PaymentRequest(code, amount, "", "", ""); - } else if (OpenCryptoPayService.isOpenCryptoPayQR(code)) { - req = PaymentRequest(code, "", "", "", ""); - } else if (Uri.tryParse(code)?.scheme == "wc") { + // if (false && SendViewModelBase.isNonZeroAmountLightningInvoice(code)) { + // unspentCoinType = UnspentCoinType.lightning; + // final amount = CryptoCurrency.btcln.formatAmount(BigInt.from(getBolt11Amount(code) ?? 0)); + // req = PaymentRequest(code, amount, "", "", ""); + // } else if (false && SendViewModelBase.isLnurlInvoice(code)) { + // unspentCoinType = UnspentCoinType.lightning; + // final amount = CryptoCurrency.btcln.formatAmount(BigInt.from(await LNURL.getPayRequestAmount(code) ?? 0)); + // req = PaymentRequest(code, amount, "", "", ""); + // } else if (false &&OpenCryptoPayService.isOpenCryptoPayQR(code)) { + // req = PaymentRequest(code, "", "", "", ""); + // } else + if (Uri.tryParse(code)?.scheme == "wc") { if (!isWalletConnectCompatibleChain(walletType)) { showPopUp( context: context,