Skip to content

Commit

Permalink
Merge pull request #575 from IntersectMBO/jordan/make-v3-script-datum…
Browse files Browse the repository at this point in the history
…-optional

Make ScriptDatum in spending scripts optional in accordance with CIP-0069
  • Loading branch information
Jimbo4350 authored Jul 19, 2024
2 parents 8421437 + e966600 commit 83122f7
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 @@ -766,7 +766,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 @@ -2321,7 +2321,7 @@ convScriptData sbe txOuts scriptWitnesses =
_
_
_
(ScriptDatumForTxIn d)
(ScriptDatumForTxIn (Just d))
_
_
)
Expand Down Expand Up @@ -2618,7 +2618,7 @@ makeShelleyTransactionBody
_
_
_
(ScriptDatumForTxIn d)
(ScriptDatumForTxIn (Just d))
_
_
)
Expand Down Expand Up @@ -2744,7 +2744,7 @@ makeShelleyTransactionBody
_
_
_
(ScriptDatumForTxIn d)
(ScriptDatumForTxIn (Just d))
_
_
)
Expand Down Expand Up @@ -2882,7 +2882,7 @@ makeShelleyTransactionBody
_
_
_
(ScriptDatumForTxIn d)
(ScriptDatumForTxIn (Just d))
_
_
)
Expand Down

0 comments on commit 83122f7

Please sign in to comment.