mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-23 19:05:51 +00:00
Merge pull request #746 from cypherstack/tezart-restore-fix
Fix error with Tezos restore
This commit is contained in:
commit
cff01b1133
1 changed files with 3 additions and 3 deletions
|
@ -429,14 +429,14 @@ class TezosWallet extends Bip39Wallet<Tezos> {
|
||||||
await mainDB.updateOrPutAddresses([address]);
|
await mainDB.updateOrPutAddresses([address]);
|
||||||
|
|
||||||
// ensure we only have a single address
|
// ensure we only have a single address
|
||||||
await mainDB.isar.writeTxn(() async {
|
mainDB.isar.writeTxnSync(() {
|
||||||
await mainDB.isar.addresses
|
mainDB.isar.addresses
|
||||||
.where()
|
.where()
|
||||||
.walletIdEqualTo(walletId)
|
.walletIdEqualTo(walletId)
|
||||||
.filter()
|
.filter()
|
||||||
.not()
|
.not()
|
||||||
.derivationPath((q) => q.valueEqualTo(derivationPath))
|
.derivationPath((q) => q.valueEqualTo(derivationPath))
|
||||||
.deleteAll();
|
.deleteAllSync();
|
||||||
});
|
});
|
||||||
|
|
||||||
if (info.cachedReceivingAddress != address.value) {
|
if (info.cachedReceivingAddress != address.value) {
|
||||||
|
|
Loading…
Reference in a new issue