mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-03-26 00:58:50 +00:00
delete by index instead of public Coin since who tf knows what it could be in our code
This commit is contained in:
parent
04658f8eef
commit
2cca59532e
1 changed files with 2 additions and 3 deletions
|
@ -3046,10 +3046,9 @@ class FiroWallet extends CoinServiceAPI
|
|||
try {
|
||||
await db.isar.writeTxn(() async {
|
||||
for (final c in updatedCoins) {
|
||||
await db.isar.lelantusCoins.deleteByPublicCoinWalletIdTxid(
|
||||
c.publicCoin,
|
||||
await db.isar.lelantusCoins.deleteByMintIndexWalletId(
|
||||
c.mintIndex,
|
||||
c.walletId,
|
||||
c.txid,
|
||||
);
|
||||
}
|
||||
await db.isar.lelantusCoins.putAll(updatedCoins);
|
||||
|
|
Loading…
Reference in a new issue