From 1c812b0bf2e0138facd8e0cf7eb075a2e8574138 Mon Sep 17 00:00:00 2001 From: julian Date: Mon, 13 Feb 2023 16:47:42 -0600 Subject: [PATCH] extra firo logging --- lib/services/coins/firo/firo_wallet.dart | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/lib/services/coins/firo/firo_wallet.dart b/lib/services/coins/firo/firo_wallet.dart index 9023f3d8f..1ea8ddf13 100644 --- a/lib/services/coins/firo/firo_wallet.dart +++ b/lib/services/coins/firo/firo_wallet.dart @@ -2926,10 +2926,16 @@ class FiroWallet extends CoinServiceAPI with WalletCache, WalletDB, FiroHive { // this should normally never be null anyways but old (dbVersion up to 4) // migrated transactions may not have had an address (full rescan should // fix this) - final transactionAddress = - value.item2.subType == isar_models.TransactionSubType.mint - ? value.item1 - : value.item1!; + isar_models.Address? transactionAddress; + try { + transactionAddress = + value.item2.subType == isar_models.TransactionSubType.mint + ? value.item1 + : value.item1!; + } catch (_) { + Logging.instance + .log("_refreshLelantusData value: $value", level: LogLevel.Fatal); + } final outs = value.item2.outputs.where((_) => true).toList(growable: false); final ins = value.item2.inputs.where((_) => true).toList(growable: false);