Skip to content

Commit c1a4e6a

Browse files
committed
Add relevant links to formal spec
1 parent 15a01f7 commit c1a4e6a

File tree

2 files changed

+10
-2
lines changed
  • cardano-cli
    • src/Cardano/CLI/EraBased/Transaction
    • test/cardano-cli-golden/Test/Golden/Conway/Transaction

2 files changed

+10
-2
lines changed

cardano-cli/src/Cardano/CLI/EraBased/Transaction/Run.hs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,11 @@ runTransactionBuildCmd
291291
let currentTreasuryValueAndDonation =
292292
case (treasuryDonation, unFeatured <$> featuredCurrentTreasuryValueM) of
293293
(Nothing, _) -> Nothing -- We shouldn't specify the treasury value when no donation is being done
294-
(Just td, mctv) -> Just (mctv, td) -- Current treasury value is not mandatory for donations (https://discord.com/channels/1136727663583698984/1239888777015590913/1364244737602879498)
294+
(Just td, mctv) -> Just (mctv, td) -- Current treasury value is not mandatory for donations, see:
295+
-- \* https://intersectmbo.github.io/formal-ledger-specifications/site/Ledger.Conway.Specification.Utxo.html#sec:the-utxo-transition-system
296+
-- \* https://intersectmbo.github.io/formal-ledger-specifications/site/Notation.html#the-maybe-type
297+
-- And discussion:
298+
-- \* https://discord.com/channels/1136727663583698984/1239888777015590913/1364244737602879498
295299

296300
-- We need to construct the txBodycontent outside of runTxBuild
297301
BalancedTxBody txBodyContent balancedTxBody _ _ <-

cardano-cli/test/cardano-cli-golden/Test/Golden/Conway/Transaction/BuildRaw.hs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@ hprop_golden_conway_build_raw_treasury_donation =
4545

4646
H.diffFileVsGoldenFile outFile goldenFile
4747

48-
-- Current treasury value is not mandatory for donations (https://discord.com/channels/1136727663583698984/1239888777015590913/1364244737602879498)
48+
-- Current treasury value is not mandatory for donations, see formal spec:
49+
-- \* https://intersectmbo.github.io/formal-ledger-specifications/site/Ledger.Conway.Specification.Utxo.html#sec:the-utxo-transition-system
50+
-- \* https://intersectmbo.github.io/formal-ledger-specifications/site/Notation.html#the-maybe-type
51+
-- And discussion:
52+
-- \* https://discord.com/channels/1136727663583698984/1239888777015590913/1364244737602879498
4953

5054
-- | Execute me with:
5155
-- @cabal test cardano-cli-golden --test-options '-p "/golden conway build raw donation no current treasury value/"'@

0 commit comments

Comments
 (0)