Skip to content

Commit

Permalink
Adapt comments in corresponding Run function
Browse files Browse the repository at this point in the history
  • Loading branch information
smelc committed Nov 16, 2023
1 parent 8ee0898 commit e79703a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions cardano-cli/src/Cardano/CLI/EraBased/Run/StakeAddress.hs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ runStakeAddressRegistrationCertificateCmd sbe stakeIdentifier mDeposit oFp = do
createRegistrationCertRequirements :: ()
=> ShelleyBasedEra era
-> StakeCredential
-> Maybe Lovelace
-> Maybe Lovelace -- ^ Deposit required in conway era
-> Either StakeAddressRegistrationError (StakeAddressRequirements era)
createRegistrationCertRequirements sbe stakeCred mdeposit =
case sbe of
Expand All @@ -162,8 +162,10 @@ createRegistrationCertRequirements sbe stakeCred mdeposit =
return $ StakeAddrRegistrationPreConway ShelleyToBabbageEraBabbage stakeCred
ShelleyBasedEraConway ->
case mdeposit of
-- TODO: This error constructor will never be called
Nothing -> Left StakeAddressRegistrationDepositRequired
Nothing ->
-- This case is made impossible by the parser, that distinguishes between Conway
-- and pre-Conway.
Left StakeAddressRegistrationDepositRequired
Just dep ->
return $ StakeAddrRegistrationConway ConwayEraOnwardsConway dep stakeCred

Expand Down

0 comments on commit e79703a

Please sign in to comment.