Skip to content

Commit

Permalink
conclude toCardanoTxOut
Browse files Browse the repository at this point in the history
  • Loading branch information
paweljakubas committed Aug 11, 2023
1 parent e675eb9 commit ba4f707
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions lib/wallet/src/Cardano/Wallet/Shelley/Compatibility.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1474,7 +1474,14 @@ toCardanoTxOut era refScriptM = case era of
datumHash
refScript
where
refScript = Cardano.ReferenceScriptNone
refScript = case refScriptM of
Nothing ->
Cardano.ReferenceScriptNone
Just script ->
let aux = Cardano.ReferenceTxInsScriptsInlineDatumsInBabbageEra
scriptApi = Cardano.toScriptInAnyLang $ Cardano.SimpleScript $
toCardanoSimpleScript script
in Cardano.ReferenceScript aux scriptApi
datumHash = Cardano.TxOutDatumNone
addrInEra = tina "toCardanoTxOut: malformed address"
[ Cardano.AddressInEra
Expand All @@ -1495,7 +1502,14 @@ toCardanoTxOut era refScriptM = case era of
datumHash
refScript
where
refScript = Cardano.ReferenceScriptNone
refScript = case refScriptM of
Nothing ->
Cardano.ReferenceScriptNone
Just script ->
let aux = Cardano.ReferenceTxInsScriptsInlineDatumsInConwayEra
scriptApi = Cardano.toScriptInAnyLang $ Cardano.SimpleScript $
toCardanoSimpleScript script
in Cardano.ReferenceScript aux scriptApi
datumHash = Cardano.TxOutDatumNone
addrInEra = tina "toCardanoTxOut: malformed address"
[ Cardano.AddressInEra
Expand Down

0 comments on commit ba4f707

Please sign in to comment.