Skip to content

Commit

Permalink
Treefmt
Browse files Browse the repository at this point in the history
  • Loading branch information
noonio committed Jan 13, 2025
1 parent 434a0df commit c5ef3da
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions hydra-cluster/src/Hydra/Cluster/Scenarios.hs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import CardanoClient (
submitTx,
waitForUTxO,
)
import Hydra.Cardano.Api.Pretty (renderTxWithUTxO)
import CardanoNode (NodeLog)
import Control.Concurrent.Async (mapConcurrently_)
import Control.Lens ((^..), (^?))
Expand All @@ -38,7 +37,6 @@ import Hydra.API.HTTPServer (
)
import Hydra.Cardano.Api (
Coin (..),
mkTxIn,
File (File),
Key (SigningKey),
KeyWitnessInCtx (KeyWitnessForSpending),
Expand All @@ -58,6 +56,7 @@ import Hydra.Cardano.Api (
mkScriptAddress,
mkScriptDatum,
mkScriptWitness,
mkTxIn,
mkTxOutAutoBalance,
mkTxOutDatumHash,
mkVkAddress,
Expand All @@ -78,6 +77,7 @@ import Hydra.Cardano.Api (
pattern TxOut,
pattern TxOutDatumNone,
)
import Hydra.Cardano.Api.Pretty (renderTxWithUTxO)
import Hydra.Cluster.Faucet (FaucetLog, createOutputAtAddress, seedFromFaucet, seedFromFaucet_)
import Hydra.Cluster.Faucet qualified as Faucet
import Hydra.Cluster.Fixture (Actor (..), actorName, alice, aliceSk, aliceVk, bob, bobSk, bobVk, carol, carolSk)
Expand Down Expand Up @@ -420,9 +420,10 @@ singlePartyUsesSchnorrkelScriptOnL2 tracer workDir node hydraScriptsTxId =
utxoToCommit <- seedFromFaucet node walletVk 100_000_000 (contramap FromFaucet tracer)

-- Push it into L2
requestCommitTx n1 utxoToCommit <&> signTx walletSk >>= \tx -> do
putStrLn $ renderTxWithUTxO utxoToCommit tx
submitTx node tx
requestCommitTx n1 utxoToCommit
<&> signTx walletSk >>= \tx -> do
putStrLn $ renderTxWithUTxO utxoToCommit tx
submitTx node tx

-- Check UTxO is present in L2
waitFor hydraTracer (10 * blockTime) [n1] $
Expand Down

0 comments on commit c5ef3da

Please sign in to comment.