@@ -1335,9 +1335,7 @@ canDepositPartially tracer workDir blockTime backend hydraScriptsTxId =
1335
1335
(requestCommitTx' n1 commitUTxO (Just 6_000_000 ) <&> toJSON)
1336
1336
`shouldThrow` expectErrorStatus 400 (Just " AmountTooLow" )
1337
1337
1338
- commitUTxO2 <- seedFromFaucet backend walletVk 5_000_000 (contramap FromFaucet tracer)
1339
1338
let expectedCommit = fst $ capUTxO commitUTxO 2_000_000
1340
- let expectedCommit2 = fst $ capUTxO commitUTxO2 3_000_000
1341
1339
1342
1340
depositTransaction <- requestCommitTx' n2 commitUTxO (Just 2_000_000 )
1343
1341
@@ -1351,18 +1349,9 @@ canDepositPartially tracer workDir blockTime backend hydraScriptsTxId =
1351
1349
output " CommitFinalized" [" headId" .= headId, " depositTxId" .= getTxId (getTxBody tx)]
1352
1350
1353
1351
getSnapshotUTxO n1 `shouldReturn` expectedCommit
1354
-
1355
- depositTransaction' <- requestCommitTx' n1 commitUTxO2 (Just 3_000_000 )
1356
- let tx' = signTx walletSk depositTransaction'
1357
-
1358
- Backend. submitTransaction backend tx'
1359
-
1360
- waitFor hydraTracer (2 * realToFrac depositPeriod) [n1, n2] $
1361
- output " CommitApproved" [" headId" .= headId, " utxoToCommit" .= expectedCommit2]
1362
- waitFor hydraTracer (20 * blockTime) [n1, n2] $
1363
- output " CommitFinalized" [" headId" .= headId, " depositTxId" .= getTxId (getTxBody tx')]
1364
-
1365
- getSnapshotUTxO n1 `shouldReturn` expectedCommit <> expectedCommit2
1352
+ -- check that user balance balance contains the change from the commit tx
1353
+ (balance <$> Backend. queryUTxOFor backend QueryTip walletVk)
1354
+ `shouldReturn` lovelaceToValue 3_000_000
1366
1355
1367
1356
send n2 $ input " Close" []
1368
1357
@@ -1379,7 +1368,7 @@ canDepositPartially tracer workDir blockTime backend hydraScriptsTxId =
1379
1368
1380
1369
-- Assert final wallet balance
1381
1370
(balance <$> Backend. queryUTxOFor backend QueryTip walletVk)
1382
- `shouldReturn` balance ( commitUTxO <> commitUTxO2)
1371
+ `shouldReturn` balance commitUTxO
1383
1372
where
1384
1373
hydraTracer = contramap FromHydraNode tracer
1385
1374
0 commit comments