Skip to content

Commit

Permalink
Merge pull request BlueWallet#5432 from BlueWallet/fix-bip47-related-…
Browse files Browse the repository at this point in the history
…crash

FIX: bip47 related crash on wallet/details
  • Loading branch information
GladosBlueWallet authored Apr 2, 2023
2 parents a4864a4 + 6d3e089 commit 9529a40
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions class/wallets/abstract-wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,10 @@ export class AbstractWallet {
return false;
}

switchBIP47(value: boolean): void {
throw new Error('switchBIP47: not implemented');
}

allowReceive(): boolean {
return true;
}
Expand Down
4 changes: 3 additions & 1 deletion screen/wallets/details.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,9 @@ const WalletDetails = () => {
wallet.setUseWithHardwareWalletEnabled(useWithHardwareWallet);
}
wallet.setHideTransactionsInWalletsList(!hideTransactionsInWalletsList);
wallet.switchBIP47(isBIP47Enabled);
if (wallet.allowBIP47()) {
wallet.switchBIP47(isBIP47Enabled);
}
}
saveToDisk()
.then(() => {
Expand Down

0 comments on commit 9529a40

Please sign in to comment.