Skip to content

Commit

Permalink
Simplify with caseShelleyToBabbageOrConwayEraOnwards
Browse files Browse the repository at this point in the history
  • Loading branch information
newhoggy committed Sep 22, 2023
1 parent f8f00c5 commit fdb0ec3
Showing 1 changed file with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -235,14 +235,10 @@ pIntroducedInBabbagePParams =

-- Not necessary in Conway era onwards
pProtocolParametersUpdateGenesisKeys :: ShelleyBasedEra era -> Parser [VerificationKeyFile In]
pProtocolParametersUpdateGenesisKeys sbe =
case sbe of
ShelleyBasedEraShelley -> many pGenesisVerificationKeyFile
ShelleyBasedEraAllegra -> many pGenesisVerificationKeyFile
ShelleyBasedEraMary -> many pGenesisVerificationKeyFile
ShelleyBasedEraAlonzo -> many pGenesisVerificationKeyFile
ShelleyBasedEraBabbage -> many pGenesisVerificationKeyFile
ShelleyBasedEraConway -> empty
pProtocolParametersUpdateGenesisKeys =
caseShelleyToBabbageOrConwayEraOnwards
(const (many pGenesisVerificationKeyFile))
(const empty)

dpGovActionProtocolParametersUpdate
:: ShelleyBasedEra era -> Parser (EraBasedProtocolParametersUpdate era)
Expand Down

0 comments on commit fdb0ec3

Please sign in to comment.