Merge pull request #5432 from BlueWallet/fix-bip47-related-crash

FIX: bip47 related crash on wallet/details
This commit is contained in:
GLaDOS 2023-04-02 15:04:41 +01:00 committed by GitHub
commit 9529a4050a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -151,6 +151,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(() => {