mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
fix receive option switching after ln invoice is generated (#3119)
This commit is contained in:
@@ -197,7 +197,7 @@ abstract class WalletAddressListViewModelBase extends WalletChangeListenerViewMo
|
||||
amount: _amount,
|
||||
contractAddress: (tokenCurrency as Erc20Token).contractAddress);
|
||||
}
|
||||
if (_lnPaymentRequest != null) return _lnPaymentRequest!;
|
||||
if (isLightning && _lnPaymentRequest != null) return _lnPaymentRequest!;
|
||||
return wallet.walletAddresses.getPaymentUri(_amount);
|
||||
}
|
||||
|
||||
@@ -550,7 +550,7 @@ abstract class WalletAddressListViewModelBase extends WalletChangeListenerViewMo
|
||||
wallet.type == WalletType.bitcoin && bitcoin!.hasSelectedSilentPayments(wallet);
|
||||
|
||||
@computed
|
||||
bool get isLightning => wallet.type == WalletType.bitcoin && (uri is LightningPaymentRequest);
|
||||
bool get isLightning => wallet.type == WalletType.bitcoin && (wallet.walletAddresses.getPaymentUri(_amount) is LightningPaymentRequest);
|
||||
|
||||
@computed
|
||||
bool get isZCashTransparent {
|
||||
|
||||
Reference in New Issue
Block a user