Skip to content

Commit

Permalink
Shorten definition of arbitrary for PartialTx.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanknowles committed Apr 22, 2024
1 parent 918bd0e commit c4a8e69
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2667,12 +2667,9 @@ instance forall era. IsRecentEra era => Arbitrary (PartialTx era) where
arbitrary = do
tx <- genTxForBalancing
extraUTxO <- genExtraUTxO tx
return PartialTx
{ tx
, extraUTxO
, redeemers = []
, timelockKeyWitnessCounts = mempty
}
let redeemers = []
let timelockKeyWitnessCounts = mempty
pure PartialTx {tx, extraUTxO, redeemers, timelockKeyWitnessCounts}
where
genExtraUTxO :: Tx era -> Gen (UTxO era)
genExtraUTxO tx =
Expand Down

0 comments on commit c4a8e69

Please sign in to comment.