From 45cc7e460669e9aa663b0c00eaac334599e15d0e Mon Sep 17 00:00:00 2001 From: Franco Testagrossa Date: Fri, 24 May 2024 11:51:14 +0200 Subject: [PATCH] Fix how the model snapshot is interpreted into a confirmed in case of the initial --- hydra-node/test/Hydra/Chain/Direct/TxTraceSpec.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hydra-node/test/Hydra/Chain/Direct/TxTraceSpec.hs b/hydra-node/test/Hydra/Chain/Direct/TxTraceSpec.hs index fcce2206449..3105ae19032 100644 --- a/hydra-node/test/Hydra/Chain/Direct/TxTraceSpec.hs +++ b/hydra-node/test/Hydra/Chain/Direct/TxTraceSpec.hs @@ -545,7 +545,7 @@ confirmedSnapshot modelSnapshot@ModelSnapshot{snapshotNumber} = { -- -- NOTE: The close validator would not check headId on close with -- initial snapshot, but we need to provide it still. headId = mkHeadId Fixture.testPolicyId - , initialUTxO = fst $ generateUTxOFromModelSnapshot (ModelSnapshot 0 (fromList [A]) (fromList [])) + , initialUTxO = fst $ generateUTxOFromModelSnapshot modelSnapshot } _ -> ConfirmedSnapshot{snapshot, signatures} where