Skip to content

Commit

Permalink
Restrict the generated range for TxIx.
Browse files Browse the repository at this point in the history
Recent ledger changes
(IntersectMBO/cardano-ledger#2530) have
restricted the range for transaction input indices. Since these are
unlikely to be large anyway, restrict the generated range.
  • Loading branch information
nc6 committed Nov 4, 2021
1 parent 9932894 commit 8406ea7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cardano-api/gen/Gen/Cardano/Api/Typed.hs
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ genTxId :: Gen TxId
genTxId = TxId <$> genShelleyHash

genTxIndex :: Gen TxIx
genTxIndex = TxIx <$> Gen.word Range.constantBounded
genTxIndex = TxIx <$> Gen.word (Range.constantFrom 0 0 65535)

genTxOutValue :: CardanoEra era -> Gen (TxOutValue era)
genTxOutValue era =
Expand Down

0 comments on commit 8406ea7

Please sign in to comment.