Merge pull request #746 from cypherstack/tezart-restore-fix

Fix error with Tezos restore
This commit is contained in:
Diego Salazar 2024-02-06 20:51:59 -07:00 committed by GitHub
commit cff01b1133
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) {