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 minConfirms,
required int minCoinbaseConfirms, required int minCoinbaseConfirms,
}) { }) {
String prettyConfirms() => String prettyConfirms() => "("
"(${getConfirmations(currentChainHeight)}/$minConfirms)"; "${getConfirmations(currentChainHeight)}"
"/"
"${(isCoinbase() ? minCoinbaseConfirms : minConfirms)}"
")";
if (subType == TransactionSubType.cashFusion || if (subType == TransactionSubType.cashFusion ||
subType == TransactionSubType.mint || subType == TransactionSubType.mint ||