Skip to content

Commit

Permalink
Remove non-round-trippable value TxInsReferenceNone for babbage onwar…
Browse files Browse the repository at this point in the history
…ds in generator
  • Loading branch information
newhoggy committed Apr 7, 2023
1 parent be1dd96 commit a2810e0
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 @@ -640,15 +640,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 a2810e0

Please sign in to comment.