Skip to content

Commit

Permalink
Merge pull request #1192 from input-output-hk/fix-collect-com-mutation
Browse files Browse the repository at this point in the history
Fix asset quantity for CollectCom mutation
  • Loading branch information
ch1bo authored Dec 1, 2023
2 parents 6d9163d + aa8b19e commit d6ef7a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hydra-node/test/Hydra/Chain/Direct/Contract/CollectCom.hs
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ genCollectComMutation (tx, _utxo) =
(AssetId pid _, _) -> pid /= testPolicyId
_ -> True
(assetId, Quantity n) <- elements nonPTs
q <- Quantity <$> choose (0, n)
q <- Quantity <$> choose (1, n)
pure $ valueFromList [(assetId, q)]
-- Add another output which would extract the 'removedValue'. The ledger
-- would check for this, and this is needed because the way we implement
Expand Down

0 comments on commit d6ef7a0

Please sign in to comment.