Skip to content

Commit

Permalink
Minor refactors
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimbo4350 committed Oct 15, 2024
1 parent 4a84aa1 commit ac20e3a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
14 changes: 7 additions & 7 deletions cardano-cli/src/Cardano/CLI/EraBased/Commands.hs
Original file line number Diff line number Diff line change
Expand Up @@ -113,17 +113,17 @@ pAnyEraCommand envCli =
]

pCmds :: ShelleyBasedEra era -> EnvCli -> Parser (Cmds era)
pCmds sbe' envCli = do
pCmds sbe envCli = do
asum $
catMaybes
[ Just (AddressCmds <$> pAddressCmds envCli)
, Just (KeyCmds <$> pKeyCmds)
, fmap GenesisCmds <$> pGenesisCmds sbe' envCli
, fmap GovernanceCmds <$> pGovernanceCmds sbe'
, fmap GenesisCmds <$> pGenesisCmds sbe envCli
, fmap GovernanceCmds <$> pGovernanceCmds sbe
, Just (NodeCmds <$> pNodeCmds)
, fmap QueryCmds <$> pQueryCmds sbe' envCli
, fmap StakeAddressCmds <$> pStakeAddressCmds sbe' envCli
, fmap StakePoolCmds <$> pStakePoolCmds sbe' envCli
, fmap QueryCmds <$> pQueryCmds sbe envCli
, fmap StakeAddressCmds <$> pStakeAddressCmds sbe envCli
, fmap StakePoolCmds <$> pStakePoolCmds sbe envCli
, fmap TextViewCmds <$> pTextViewCmds
, fmap TransactionCmds <$> pTransactionCmds sbe' envCli
, fmap TransactionCmds <$> pTransactionCmds sbe envCli
]
3 changes: 1 addition & 2 deletions cardano-cli/src/Cardano/CLI/EraBased/Options/StakeAddress.hs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ pStakeAddressDeregistrationCertificateCmd
:: ()
=> ShelleyBasedEra era
-> Parser (StakeAddressCmds era)
pStakeAddressDeregistrationCertificateCmd sbe = do
pStakeAddressDeregistrationCertificateCmd =
caseShelleyToBabbageOrConwayEraOnwards
( \shelleyToBabbage ->
subParser "deregistration-certificate"
Expand All @@ -137,7 +137,6 @@ pStakeAddressDeregistrationCertificateCmd sbe = do
)
$ Opt.progDesc "Create a stake address deregistration certificate"
)
sbe

pStakeAddressStakeDelegationCertificateCmd
:: ()
Expand Down

0 comments on commit ac20e3a

Please sign in to comment.