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