mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 03:49:22 +00:00
firo mint tx migrate fix
This commit is contained in:
parent
7d061866bd
commit
95b9e6170f
1 changed files with 8 additions and 1 deletions
|
@ -2864,7 +2864,14 @@ class FiroWallet extends CoinServiceAPI with WalletCache, WalletDB, FiroHive {
|
|||
List<isar_models.Input>, isar_models.Address?>> txnsData = [];
|
||||
|
||||
for (final value in data.values) {
|
||||
final transactionAddress = value.item1!;
|
||||
// allow possible null address on mints as we don't display address
|
||||
// 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!;
|
||||
final outs =
|
||||
value.item2.outputs.where((_) => true).toList(growable: false);
|
||||
final ins = value.item2.inputs.where((_) => true).toList(growable: false);
|
||||
|
|
Loading…
Reference in a new issue