Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make ScriptDatum in spending scripts optional in accordance with CIP-0069 #575

Merged
merged 1 commit into from
Jul 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -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
Loading