ensure tx status label shows correct number of confirms if is coinbase

This commit is contained in:
julian 2024-11-21 09:44:42 -06:00 committed by julian-CStack
parent 40b0f49f20
commit 9c9a9f8d3e

View file

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