Skip to content

Commit

Permalink
Add certs support in compatible Tx building
Browse files Browse the repository at this point in the history
  • Loading branch information
carbolymer committed Nov 25, 2024
1 parent 4dde2e6 commit 2b524fd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cardano-api/internal/Cardano/Api/Tx/Compatible.hs
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ createCompatibleSignedTx
-- ^ Fee
-> AnyProtocolUpdate era
-> AnyVote era
-> TxCertificates BuildTx era
-> Either ProtocolParametersConversionError (Tx era)
createCompatibleSignedTx sbeF ins outs witnesses txFee' anyProtocolUpdate anyVote =
createCompatibleSignedTx sbeF ins outs witnesses txFee' anyProtocolUpdate anyVote txCertificates' =
shelleyBasedEraConstraints sbeF $ do
tx <- case anyProtocolUpdate of
ProtocolUpdate shelleyToBabbageEra updateProposal -> do
Expand Down Expand Up @@ -97,7 +98,8 @@ createCompatibleSignedTx sbeF ins outs witnesses txFee' anyProtocolUpdate anyVot
txbody =
conwayEraOnwardsConstraints conwayOnwards $
createCommonTxBody sbe ins outs txFee'
& L.referenceInputsTxBodyL .~ fromList referenceInputs
& L.referenceInputsTxBodyL .~ fromList referenceInputs -- TODO add refinputs from certs here
& L.certsTxBodyL .~ convCertificates sbe txCertificates' -- TODO most likely that's not a single place needing update
& L.proposalProceduresTxBodyL
.~ proposals

Expand Down

0 comments on commit 2b524fd

Please sign in to comment.