Skip to content

Commit

Permalink
Remove RecentEra argument from genPParams.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanknowles committed Feb 9, 2024
1 parent 972a999 commit 38d5969
Showing 1 changed file with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ import Data.Word
import Internal.Cardano.Write.Tx
( IsRecentEra (..)
, ProtVer (..)
, RecentEra (..)
, StandardBabbage
, StandardConway
, Version
Expand Down Expand Up @@ -274,16 +273,12 @@ data PParamsInRecentEra

instance Arbitrary PParamsInRecentEra where
arbitrary = oneof
[ PParamsInBabbage <$> genPParams RecentEraBabbage
, PParamsInConway <$> genPParams RecentEraConway
[ PParamsInBabbage <$> genPParams
, PParamsInConway <$> genPParams
]

where
genPParams
:: IsRecentEra era
=> RecentEra era
-> Gen (PParams era)
genPParams _era = do
genPParams :: IsRecentEra era => Gen (PParams era)
genPParams = do
ver <- arbitrary
maxSize <- genMaxSizeBytes
return $ def
Expand Down

0 comments on commit 38d5969

Please sign in to comment.