From 9c9a9f8d3e7909f5b26d2d9ffbb84e9867642107 Mon Sep 17 00:00:00 2001 From: julian Date: Thu, 21 Nov 2024 09:44:42 -0600 Subject: [PATCH] ensure tx status label shows correct number of confirms if is coinbase --- .../isar/models/blockchain_data/v2/transaction_v2.dart | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/models/isar/models/blockchain_data/v2/transaction_v2.dart b/lib/models/isar/models/blockchain_data/v2/transaction_v2.dart index 9d080a2a0..4b9c84d6d 100644 --- a/lib/models/isar/models/blockchain_data/v2/transaction_v2.dart +++ b/lib/models/isar/models/blockchain_data/v2/transaction_v2.dart @@ -232,8 +232,11 @@ class TransactionV2 { required int minConfirms, required int minCoinbaseConfirms, }) { - String prettyConfirms() => - "(${getConfirmations(currentChainHeight)}/$minConfirms)"; + String prettyConfirms() => "(" + "${getConfirmations(currentChainHeight)}" + "/" + "${(isCoinbase() ? minCoinbaseConfirms : minConfirms)}" + ")"; if (subType == TransactionSubType.cashFusion || subType == TransactionSubType.mint ||