Skip to content

Commit

Permalink
Update makeUnsignedTx to include supplemental datums
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimbo4350 committed Sep 17, 2024
1 parent 443b62c commit f4942ca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cardano-api/internal/Cardano/Api/Experimental/Tx.hs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ makeUnsignedTx era bc = obtainCommonConstraints era $ do
apiExtraKeyWitnesses = txExtraKeyWits bc
apiReturnCollateral = txReturnCollateral bc
apiTotalCollateral = txTotalCollateral bc
apiSupplementaryData = txSupplementalData bc

-- Ledger types
txins = convTxIns $ txIns bc
Expand All @@ -90,10 +91,11 @@ makeUnsignedTx era bc = obtainCommonConstraints era $ do
txAuxData = toAuxiliaryData sbe (txMetadata bc) (txAuxScripts bc)
scripts = convScripts apiScriptWitnesses
languages = convLanguages apiScriptWitnesses
sData = convScriptData sbe apiTxOuts apiScriptWitnesses
sData = convScriptData sbe apiTxOuts apiScriptWitnesses apiSupplementaryData
(datums, redeemers) = case sData of
TxBodyScriptData _ ds rs -> (ds, rs)
TxBodyNoScriptData -> (mempty, L.Redeemers mempty)

let setMint = convMintValue apiMintValue
setReqSignerHashes = convExtraKeyWitnesses apiExtraKeyWitnesses
ledgerTxBody =
Expand Down

0 comments on commit f4942ca

Please sign in to comment.