mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-02-02 03:06:29 +00:00
store jmint separately from updated coins
This commit is contained in:
parent
90b16c576e
commit
c1f73a89be
1 changed files with 4 additions and 3 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue