diff --git a/lib/db/isar/main_db.dart b/lib/db/isar/main_db.dart index 4b60e2cda..93c9052da 100644 --- a/lib/db/isar/main_db.dart +++ b/lib/db/isar/main_db.dart @@ -371,7 +371,8 @@ class MainDB { final transactionCount = await getTransactions(walletId).count(); final addressCount = await getAddresses(walletId).count(); final utxoCount = await getUTXOs(walletId).count(); - final lelantusCoinCount = await isar.lelantusCoins.where().walletIdEqualTo(walletId).count(); + final lelantusCoinCount = + await isar.lelantusCoins.where().walletIdEqualTo(walletId).count(); await isar.writeTxn(() async { const paginateLimit = 50; @@ -408,7 +409,9 @@ class MainDB { // lelantusCoins for (int i = 0; i < lelantusCoinCount; i += paginateLimit) { - final lelantusCoinIds = await isar.lelantusCoins.where().walletIdEqualTo(walletId) + final lelantusCoinIds = await isar.lelantusCoins + .where() + .walletIdEqualTo(walletId) .offset(i) .limit(paginateLimit) .idProperty()