From 7666a9383df1c3ce73810474fffc5a5cb53ac1b4 Mon Sep 17 00:00:00 2001 From: sneurlax Date: Mon, 13 Feb 2023 14:02:52 -0600 Subject: [PATCH] putAddresses->updateOrPutAddresses should solve isar unique index violation error --- lib/services/coins/firo/firo_wallet.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/services/coins/firo/firo_wallet.dart b/lib/services/coins/firo/firo_wallet.dart index 7b7f5cb98..6acc91e8e 100644 --- a/lib/services/coins/firo/firo_wallet.dart +++ b/lib/services/coins/firo/firo_wallet.dart @@ -4376,7 +4376,7 @@ class FiroWallet extends CoinServiceAPI with WalletCache, WalletDB, FiroHive { changeAddressArray.add(changeAddress); } - await db.putAddresses([ + await db.updateOrPutAddresses([ ...receivingAddressArray, ...changeAddressArray, ]);