putAddresses->updateOrPutAddresses

should solve isar unique index violation error
This commit is contained in:
sneurlax 2023-02-13 14:02:52 -06:00
parent 5d033dd446
commit 7666a9383d

View file

@ -4376,7 +4376,7 @@ class FiroWallet extends CoinServiceAPI with WalletCache, WalletDB, FiroHive {
changeAddressArray.add(changeAddress);
}
await db.putAddresses([
await db.updateOrPutAddresses([
...receivingAddressArray,
...changeAddressArray,
]);