extra firo logging

This commit is contained in:
julian 2023-02-13 16:47:42 -06:00
parent 2bee017cb8
commit 1c812b0bf2

View file

@ -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);