Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
description: |
Update cardano-api to 11.7.0.0, fixing plutus redeemer pointer indexing in transaction building: proposal pointers now follow the transaction's insertion order and certificate pointers count unwitnessed certificates.
kind:
- bugfix
pr: 1440
project: cardano-cli
2 changes: 1 addition & 1 deletion cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ repository cardano-haskell-packages
-- you need to run if you change them
index-state:
, hackage.haskell.org 2026-07-30T07:30:12Z
, cardano-haskell-packages 2026-09-02T08:49:12Z
, cardano-haskell-packages 2026-09-04T06:57:08Z

packages:
cardano-cli
Expand Down
2 changes: 1 addition & 1 deletion cardano-cli/cardano-cli.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ library
binary,
bytestring,
canonical-json,
cardano-api ^>=11.6,
cardano-api ^>=11.7,
cardano-binary,
cardano-crypto,
cardano-crypto-class ^>=2.5,
Expand Down
14 changes: 7 additions & 7 deletions cardano-cli/src/Cardano/CLI/Compatible/Transaction/Run.hs
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,8 @@ readCertificateScriptWitnessSbe sbe (AnyNonAssetScriptPlutus plutusReq) =
redeemer
execUnits

-- | Create 'TxCertificates'. Note that 'Certificate era' will be deduplicated. Only Certificates with a
-- stake credential will be in the result.
-- | Create 'TxCertificates'. Note that 'Certificate era' will be deduplicated. A witness is attached
-- only to certificates which require one.
--
-- Note that, when building a transaction in Conway era, a witness is not required for staking credential
-- registration, but this is only the case during the transitional period of Conway era and only for staking
Expand All @@ -206,15 +206,15 @@ mkTxCertificatesSbe
. ShelleyBasedEra era
-> [(Exp.Certificate (ShelleyLedgerEra era), Exp.AnyWitness (ShelleyLedgerEra era))]
-> Exp.TxCertificates (ShelleyLedgerEra era)
mkTxCertificatesSbe era certs = Exp.TxCertificates . OMap.fromList $ map getStakeCred certs
mkTxCertificatesSbe era certs = Exp.TxCertificates . OMap.fromList $ map attachWitness certs
where
getStakeCred
attachWitness
:: (Exp.Certificate (ShelleyLedgerEra era), Exp.AnyWitness (ShelleyLedgerEra era))
-> ( Exp.Certificate (ShelleyLedgerEra era)
, Maybe (StakeCredential, Exp.AnyWitness (ShelleyLedgerEra era))
, Maybe (Exp.AnyWitness (ShelleyLedgerEra era))
)
getStakeCred (c@(Exp.Certificate cert), wit) =
(c, (,wit) <$> Compatible.getTxCertWitness (convert era) cert)
attachWitness (c@(Exp.Certificate cert), wit) =
(c, wit <$ Compatible.getTxCertWitness (convert era) cert)

readUpdateProposalFile
:: Featured ShelleyToBabbageEra era (Maybe UpdateProposalFile)
Expand Down
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading