From c1f73a89be16827fddd36343029c60212061f948 Mon Sep 17 00:00:00 2001 From: julian <julian@cypherstack.com> Date: Tue, 25 Jul 2023 15:41:06 -0600 Subject: [PATCH] store jmint separately from updated coins --- lib/services/coins/firo/firo_wallet.dart | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/services/coins/firo/firo_wallet.dart b/lib/services/coins/firo/firo_wallet.dart index 7dedf2958..2a17d0849 100644 --- a/lib/services/coins/firo/firo_wallet.dart +++ b/lib/services/coins/firo/firo_wallet.dart @@ -2981,9 +2981,6 @@ class FiroWallet extends CoinServiceAPI isJMint: true, otherData: null, ); - if (int.parse(jmint.value) > 0) { - updatedCoins.add(jmint); - } try { await db.isar.writeTxn(() async { @@ -2994,6 +2991,10 @@ class FiroWallet extends CoinServiceAPI ); } await db.isar.lelantusCoins.putAll(updatedCoins); + + if (int.parse(jmint.value) > 0) { + await db.isar.lelantusCoins.put(jmint); + } }); } catch (e, s) { Logging.instance.log(