Skip to content

Commit

Permalink
transaction view: show current treasury value and donation (if any)
Browse files Browse the repository at this point in the history
  • Loading branch information
smelc committed Jun 5, 2024
1 parent 2abc2a3 commit 236d811
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cardano-cli/src/Cardano/CLI/Json/Friendly.hs
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,8 @@ friendlyTxBodyImpl
, txValidityLowerBound
, txValidityUpperBound
, txWithdrawals
, txCurrentTreasuryValue
, txTreasuryDonation
}) =
do redeemerDetails <- redeemerIfShelleyBased era tb
return $ cardanoEraConstraints era
Expand Down Expand Up @@ -227,6 +229,8 @@ friendlyTxBodyImpl
Just (Featured _ (TxVotingProcedures votes _witnesses)) ->
friendlyVotingProcedures cOnwards votes)
era)
, "currentTreasuryValue" .= toJSON (unFeatured <$> txCurrentTreasuryValue)
, "treasuryDonation" .= toJSON (unFeatured <$> txTreasuryDonation)
])
where
friendlyLedgerProposals :: ConwayEraOnwards era -> [L.ProposalProcedure (ShelleyLedgerEra era)] -> Aeson.Value
Expand Down

0 comments on commit 236d811

Please sign in to comment.