Skip to content

Commit 82a47a5

Browse files
Add ADA to genTxOut
1 parent 288d5db commit 82a47a5

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

hydra-node/src/Hydra/Ledger/Cardano.hs

+5-4
Original file line numberDiff line numberDiff line change
@@ -362,10 +362,11 @@ genTxOut =
362362
`suchThat` notByronAddress
363363
where
364364
gen =
365-
oneof
366-
[ fromLedgerTxOut <$> arbitrary
367-
, notMultiAsset . fromLedgerTxOut <$> arbitrary
368-
]
365+
fmap (modifyTxOutValue (<> (lovelaceToValue $ Lovelace 10_000_000))) $
366+
oneof
367+
[ fromLedgerTxOut <$> arbitrary
368+
, notMultiAsset . fromLedgerTxOut <$> arbitrary
369+
]
369370

370371
notMultiAsset =
371372
modifyTxOutValue (lovelaceToValue . selectLovelace)

0 commit comments

Comments
 (0)