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 11, 2024
1 parent 6dd96c6 commit 37b6157
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 @@ -763,7 +763,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 @@ -2301,7 +2301,7 @@ convScriptData sbe txOuts scriptWitnesses =
_
_
_
(ScriptDatumForTxIn d)
(ScriptDatumForTxIn (Just d))
_
_
)
Expand Down Expand Up @@ -2598,7 +2598,7 @@ makeShelleyTransactionBody
_
_
_
(ScriptDatumForTxIn d)
(ScriptDatumForTxIn (Just d))
_
_
)
Expand Down Expand Up @@ -2724,7 +2724,7 @@ makeShelleyTransactionBody
_
_
_
(ScriptDatumForTxIn d)
(ScriptDatumForTxIn (Just d))
_
_
)
Expand Down Expand Up @@ -2862,7 +2862,7 @@ makeShelleyTransactionBody
_
_
_
(ScriptDatumForTxIn d)
(ScriptDatumForTxIn (Just d))
_
_
)
Expand Down

0 comments on commit 37b6157

Please sign in to comment.