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 27, 2024
1 parent 3557263 commit 6f2ee57
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cardano-cli/src/Cardano/CLI/Json/Friendly.hs
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ friendlyTxBodyImpl
_txScriptValidity
txProposalProcedures
txVotingProcedures
_txCurrentTreasuryValue
_txTreasuryDonation)) =
txCurrentTreasuryValue
txTreasuryDonation)) =
do redeemerDetails <- redeemerIfShelleyBased era tb
return $ cardanoEraConstraints era
( redeemerDetails ++
Expand Down Expand Up @@ -231,6 +231,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 6f2ee57

Please sign in to comment.