Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
locallycompact committed Jan 6, 2025
1 parent e943520 commit 1e65563
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions hydra-cluster/src/Hydra/Cluster/Scenarios.hs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ import Hydra.Cardano.Api (
TxId,
UTxO,
addTxIns,
addTxInsCollateral,
addTxOuts,
defaultTxBodyContent,
getTxBody,
getTxId,
Expand Down Expand Up @@ -392,7 +394,7 @@ singlePartyUsesSchnorrkelScriptOnL2 ::
Tracer IO EndToEndLog ->
FilePath ->
RunningNode ->
TxId ->
[TxId] ->
IO ()
singlePartyUsesSchnorrkelScriptOnL2 tracer workDir node hydraScriptsTxId =
(`finally` returnFundsToFaucet tracer node Alice) $ do
Expand Down Expand Up @@ -451,11 +453,11 @@ singlePartyUsesSchnorrkelScriptOnL2 tracer workDir node hydraScriptsTxId =
mkScriptWitness serializedScript (mkScriptDatum ()) (toScriptData ())
let tx =
unsafeBuildTransaction $
emptyTxBody
defaultTxBodyContent
& changePParams pparams
& addInputs ([(scriptInput, scriptWitness)] <> normalInput)
& addCollateralInput collateralInput
& addOutputs [scriptOutput, returnOutput]
& addTxIns ([(scriptInput, scriptWitness)] <> normalInput)
& addTxInsCollateral [collateralInput]
& addTxOuts [scriptOutput, returnOutput]
& setTxFee (TxFeeExplicit $ Coin 173_465)
let signedL2tx = signTx walletSk tx
send n1 $ input "NewTx" ["transaction" .= signedL2tx]
Expand Down Expand Up @@ -483,8 +485,8 @@ singlePartyUsesSchnorrkelScriptOnL2 tracer workDir node hydraScriptsTxId =
mkScriptWitness serializedScript (mkScriptDatum ()) (toScriptData ())
let spendingTx =
unsafeBuildTransaction $
emptyTxBody
& addInputs [(scriptIn, scriptWitness)]
defaultTxBodyContent
& addTxIns [(scriptIn, scriptWitness)]
pure
( Aeson.object
[ "blueprintTx" .= spendingTx
Expand Down

0 comments on commit 1e65563

Please sign in to comment.