mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-12-03 12:24:19 +01: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,
|
amount: _amount,
|
||||||
contractAddress: (tokenCurrency as Erc20Token).contractAddress);
|
contractAddress: (tokenCurrency as Erc20Token).contractAddress);
|
||||||
}
|
}
|
||||||
if (_lnPaymentRequest != null) return _lnPaymentRequest!;
|
if (isLightning && _lnPaymentRequest != null) return _lnPaymentRequest!;
|
||||||
return wallet.walletAddresses.getPaymentUri(_amount);
|
return wallet.walletAddresses.getPaymentUri(_amount);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -550,7 +550,7 @@ abstract class WalletAddressListViewModelBase extends WalletChangeListenerViewMo
|
|||||||
wallet.type == WalletType.bitcoin && bitcoin!.hasSelectedSilentPayments(wallet);
|
wallet.type == WalletType.bitcoin && bitcoin!.hasSelectedSilentPayments(wallet);
|
||||||
|
|
||||||
@computed
|
@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
|
@computed
|
||||||
bool get isZCashTransparent {
|
bool get isZCashTransparent {
|
||||||
|
|||||||
Reference in New Issue
Block a user