FIX: bip47 related crash on wallet/details

This commit is contained in:
overtorment 2023-04-02 13:39:51 +01:00
parent f24edbaeb4
commit 6d3e089d1e
2 changed files with 7 additions and 1 deletions

View file

@ -147,6 +147,10 @@ export class AbstractWallet {
return false;
}
switchBIP47(value: boolean): void {
throw new Error('switchBIP47: not implemented');
}
allowReceive(): boolean {
return true;
}

View file

@ -189,7 +189,9 @@ const WalletDetails = () => {
wallet.setUseWithHardwareWalletEnabled(useWithHardwareWallet);
}
wallet.setHideTransactionsInWalletsList(!hideTransactionsInWalletsList);
wallet.switchBIP47(isBIP47Enabled);
if (wallet.allowBIP47()) {
wallet.switchBIP47(isBIP47Enabled);
}
}
saveToDisk()
.then(() => {