remove old ln hack in scan parsing logic
Omar committed
Jun 5, 2026 at 15:30 UTC
1264fdbaa0b9ef9b2803d1079b33093fc2987591
1 file changed
+12
-11
lib/new-ui/widgets/coins_page/action_row/coin_action_row.dart
+12
-11
@@ -163,17 +163,18 @@ class CoinActionRow extends StatelessWidget {
163
164
late final PaymentRequest req;
165
var unspentCoinType = UnspentCoinType.any;
166
- if (SendViewModelBase.isNonZeroAmountLightningInvoice(code)) {
167
- unspentCoinType = UnspentCoinType.lightning;
168
- final amount = CryptoCurrency.btcln.formatAmount(BigInt.from(getBolt11Amount(code) ?? 0));
169
- req = PaymentRequest(code, amount, "", "", "");
170
- } else if (SendViewModelBase.isLnurlInvoice(code)) {
171
- unspentCoinType = UnspentCoinType.lightning;
172
- final amount = CryptoCurrency.btcln.formatAmount(BigInt.from(await LNURL.getPayRequestAmount(code) ?? 0));
173
- req = PaymentRequest(code, amount, "", "", "");
174
- } else if (OpenCryptoPayService.isOpenCryptoPayQR(code)) {
175
- req = PaymentRequest(code, "", "", "", "");
176
- } else if (Uri.tryParse(code)?.scheme == "wc") {
166
+ // if (false && SendViewModelBase.isNonZeroAmountLightningInvoice(code)) {
167
+ // unspentCoinType = UnspentCoinType.lightning;
168
+ // final amount = CryptoCurrency.btcln.formatAmount(BigInt.from(getBolt11Amount(code) ?? 0));
169
+ // req = PaymentRequest(code, amount, "", "", "");
170
+ // } else if (false && SendViewModelBase.isLnurlInvoice(code)) {
171
+ // unspentCoinType = UnspentCoinType.lightning;
172
+ // final amount = CryptoCurrency.btcln.formatAmount(BigInt.from(await LNURL.getPayRequestAmount(code) ?? 0));
173
+ // req = PaymentRequest(code, amount, "", "", "");
174
+ // } else if (false &&OpenCryptoPayService.isOpenCryptoPayQR(code)) {
175
+ // req = PaymentRequest(code, "", "", "", "");
176
+ // } else
177
+ if (Uri.tryParse(code)?.scheme == "wc") {
178
if (!isWalletConnectCompatibleChain(walletType)) {
179
showPopUp<void>(
180
context: context,