File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
hydra-node/test/Hydra/Chain/Direct Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -203,9 +203,7 @@ prop_setsMinUTxOValue =
203
203
forAllBlind (resize 0 genLedgerTx) $ \ tx ->
204
204
forAllBlind (reasonablySized $ genOutputsForInputs tx) $ \ lookupUTxO ->
205
205
forAllBlind (reasonablySized genUTxO) $ \ walletUTxO ->
206
- -- Generate another txOut and make it deliberately "under-valued"
207
- forAll arbitrary $ \ txOut -> do
208
- let txOutWithoutADA = txOut & coinTxOutL .~ mempty
206
+ forAll genTxOutWithoutADA $ \ txOutWithoutADA -> do
209
207
let newTx = tx & bodyTxL . outputsTxBodyL <>~ StrictSeq. singleton txOutWithoutADA
210
208
case coverFee_ Fixture. pparams Fixture. systemStart Fixture. epochInfo lookupUTxO walletUTxO newTx of
211
209
Left err ->
@@ -215,6 +213,9 @@ prop_setsMinUTxOValue =
215
213
let outs = toList $ balancedTx ^. bodyTxL . outputsTxBodyL
216
214
not (any (\ o -> o ^. coinTxOutL == mempty ) outs)
217
215
& counterexample (" No 0 ADA outputs expected:\n " <> show outs)
216
+ where
217
+ -- Generate a deliberately "under-valued" TxOut
218
+ genTxOutWithoutADA = arbitrary <&> coinTxOutL .~ mempty
218
219
219
220
prop_balanceTransaction :: Property
220
221
prop_balanceTransaction =
You can’t perform that action at this time.
0 commit comments