Skip to content

Commit

Permalink
Detail: adapt to cardano-api release
Browse files Browse the repository at this point in the history
  • Loading branch information
smelc committed Oct 2, 2023
1 parent bd7962f commit a9ff874
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ pGovernancePollCmds era =

pGovernanceCreatePoll :: CardanoEra era -> Maybe (Parser (GovernancePollCmds era))
pGovernanceCreatePoll era = do
w <- forEonInEra era
w <- forEraMaybeEon era
when ("BabbageEraOnwardsConway" `isInfixOf` show w) Nothing -- TODO smelc remove this when BabbageEraBabbageOnly is introduced
pure $
GovernanceCreatePoll w
Expand All @@ -55,7 +55,7 @@ pGovernanceCreatePoll era = do

pGovernanceAnswerPoll :: CardanoEra era -> Maybe (Parser (GovernancePollCmds era))
pGovernanceAnswerPoll era = do
w <- maybeEonInEra era
w <- forEraMaybeEon era
when ("BabbageEraOnwardsConway" `isInfixOf` show w) Nothing -- TODO smelc remove this when BabbageEraBabbageOnly is introduced
pure $
GovernanceAnswerPoll w
Expand All @@ -65,7 +65,7 @@ pGovernanceAnswerPoll era = do

pGovernanceVerifyPoll :: CardanoEra era -> Maybe (Parser (GovernancePollCmds era))
pGovernanceVerifyPoll era = do
w <- maybeEonInEra era
w <- forEraMaybeEon era
when ("BabbageEraOnwardsConway" `isInfixOf` show w) Nothing -- TODO smelc remove this when BabbageEraBabbageOnly is introduced
pure $
GovernanceVerifyPoll w
Expand Down

0 comments on commit a9ff874

Please sign in to comment.