mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 17:57:40 +00:00
Fix error with Tezos restore
This commit is contained in:
parent
f655b51e88
commit
3de4c659e0
1 changed files with 3 additions and 3 deletions
|
@ -429,14 +429,14 @@ class TezosWallet extends Bip39Wallet<Tezos> {
|
|||
await mainDB.updateOrPutAddresses([address]);
|
||||
|
||||
// ensure we only have a single address
|
||||
await mainDB.isar.writeTxn(() async {
|
||||
await mainDB.isar.addresses
|
||||
mainDB.isar.writeTxnSync(() {
|
||||
mainDB.isar.addresses
|
||||
.where()
|
||||
.walletIdEqualTo(walletId)
|
||||
.filter()
|
||||
.not()
|
||||
.derivationPath((q) => q.valueEqualTo(derivationPath))
|
||||
.deleteAll();
|
||||
.deleteAllSync();
|
||||
});
|
||||
|
||||
if (info.cachedReceivingAddress != address.value) {
|
||||
|
|
Loading…
Reference in a new issue