Skip to content

Commit

Permalink
Modify ScriptDatum in accordance with CIP-0069
Browse files Browse the repository at this point in the history
I.E the datum is no longer required in spending scripts
  • Loading branch information
Jimbo4350 authored and palas committed Jul 6, 2024
1 parent 19da63d commit cb225c0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cardano-api/internal/Cardano/Api/Script.hs
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ instance Eq (ScriptWitness witctx era) where
type ScriptRedeemer = HashableScriptData

data ScriptDatum witctx where
ScriptDatumForTxIn :: HashableScriptData -> ScriptDatum WitCtxTxIn
ScriptDatumForTxIn :: Maybe HashableScriptData -> ScriptDatum WitCtxTxIn
InlineScriptDatum :: ScriptDatum WitCtxTxIn
NoScriptDatumForMint :: ScriptDatum WitCtxMint
NoScriptDatumForStake :: ScriptDatum WitCtxStake
Expand Down
8 changes: 4 additions & 4 deletions cardano-api/internal/Cardano/Api/Tx/Body.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2305,7 +2305,7 @@ convScriptData sbe txOuts scriptWitnesses =
_
_
_
(ScriptDatumForTxIn d)
(ScriptDatumForTxIn (Just d))
_
_
)
Expand Down Expand Up @@ -2602,7 +2602,7 @@ makeShelleyTransactionBody
_
_
_
(ScriptDatumForTxIn d)
(ScriptDatumForTxIn (Just d))
_
_
)
Expand Down Expand Up @@ -2728,7 +2728,7 @@ makeShelleyTransactionBody
_
_
_
(ScriptDatumForTxIn d)
(ScriptDatumForTxIn (Just d))
_
_
)
Expand Down Expand Up @@ -2866,7 +2866,7 @@ makeShelleyTransactionBody
_
_
_
(ScriptDatumForTxIn d)
(ScriptDatumForTxIn (Just d))
_
_
)
Expand Down

0 comments on commit cb225c0

Please sign in to comment.