From 3de4c659e055d8c23b38f10e6c7eb72c9015e660 Mon Sep 17 00:00:00 2001 From: likho Date: Tue, 6 Feb 2024 12:34:57 +0200 Subject: [PATCH] Fix error with Tezos restore --- lib/wallets/wallet/impl/tezos_wallet.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/wallets/wallet/impl/tezos_wallet.dart b/lib/wallets/wallet/impl/tezos_wallet.dart index 1bde36803..d1df08502 100644 --- a/lib/wallets/wallet/impl/tezos_wallet.dart +++ b/lib/wallets/wallet/impl/tezos_wallet.dart @@ -429,14 +429,14 @@ class TezosWallet extends Bip39Wallet { 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) {