Skip to content

Commit

Permalink
Merge pull request #5064 from input-output-hk/newhoggy/remove-non-rou…
Browse files Browse the repository at this point in the history
…nd-trippable-value-TxInsReferenceNone-for-babbage-onwards

Remove non-round-trippable value TxInsReferenceNone for babbage onwards in generator
  • Loading branch information
newhoggy authored Apr 13, 2023
2 parents 7168359 + 8a24662 commit c58bf98
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions cardano-api/gen/Test/Gen/Cardano/Api/Typed.hs
Original file line number Diff line number Diff line change
Expand Up @@ -641,15 +641,12 @@ genTxInsCollateral era =
[ pure TxInsCollateralNone
, TxInsCollateral supported <$> Gen.list (Range.linear 0 10) genTxIn
]

genTxInsReference :: CardanoEra era -> Gen (TxInsReference BuildTx era)
genTxInsReference era =
case refInsScriptsAndInlineDatsSupportedInEra era of
Nothing -> pure TxInsReferenceNone
Just supported -> Gen.choice
[ pure TxInsReferenceNone
, TxInsReference supported <$> Gen.list (Range.linear 0 10) genTxIn
]

Just supported -> TxInsReference supported <$> Gen.list (Range.linear 0 10) genTxIn

genTxReturnCollateral :: CardanoEra era -> Gen (TxReturnCollateral CtxTx era)
genTxReturnCollateral era =
Expand Down

0 comments on commit c58bf98

Please sign in to comment.