mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-01-19 05:45:15 +01:00
FIX: rare crash on watch-only receive button
This commit is contained in:
parent
532653ecca
commit
89d1e42216
@ -120,7 +120,7 @@ export class WatchOnlyWallet extends LegacyWallet {
|
||||
throw new Error('Not initialized');
|
||||
}
|
||||
|
||||
async _getExternalAddressByIndex(index) {
|
||||
_getExternalAddressByIndex(index) {
|
||||
if (this._hdWalletInstance) return this._hdWalletInstance._getExternalAddressByIndex(index);
|
||||
throw new Error('Not initialized');
|
||||
}
|
||||
|
@ -193,7 +193,7 @@ const ReceiveDetails = () => {
|
||||
if (!address) {
|
||||
// either sleep expired or getAddressAsync threw an exception
|
||||
console.warn('either sleep expired or getAddressAsync threw an exception');
|
||||
address = wallet._getExternalAddressByIndex(wallet.next_free_address_index);
|
||||
address = wallet._getExternalAddressByIndex(wallet.getNextFreeAddressIndex());
|
||||
} else {
|
||||
BlueApp.saveToDisk(); // caching whatever getAddressAsync() generated internally
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user