mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-26 06:08:40 +01:00
guard regeneration of lightning address
This commit is contained in:
@@ -317,6 +317,12 @@ class CWBitcoin extends Bitcoin {
|
||||
return bitcoinWallet.walletAddresses.addressPageType == SilentPaymentsAddresType.p2sp;
|
||||
}
|
||||
|
||||
@override
|
||||
bool hasSelectedLightning(Object wallet) {
|
||||
final bitcoinWallet = wallet as ElectrumWallet;
|
||||
return bitcoinWallet.walletAddresses.addressPageType is LightningAddressType;
|
||||
}
|
||||
|
||||
@override
|
||||
BitcoinAddressType getBitcoinAddressType(ReceivePageOption option) {
|
||||
switch (option) {
|
||||
|
||||
@@ -614,7 +614,8 @@ abstract class WalletAddressListViewModelBase extends WalletChangeListenerViewMo
|
||||
|
||||
@computed
|
||||
bool get isLightning =>
|
||||
wallet.type == WalletType.bitcoin && selectedCurrency == CryptoCurrency.btcln;
|
||||
wallet.type == WalletType.bitcoin &&
|
||||
(selectedCurrency == CryptoCurrency.btcln || bitcoin!.hasSelectedLightning(wallet));
|
||||
|
||||
@computed
|
||||
bool get isZCashTransparent {
|
||||
|
||||
Reference in New Issue
Block a user