Skip to content

Commit

Permalink
formatting with fourmolu
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosLopezDeLara committed Sep 30, 2024
1 parent ec3d402 commit 63af950
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ data StakeAddressCmds era
(VerificationKeyOrHashOrFile StakePoolKey)
Coin
(File () Out)
deriving (Show)
deriving Show

renderStakeAddressCmds :: StakeAddressCmds era -> Text
renderStakeAddressCmds = \case
Expand Down
18 changes: 15 additions & 3 deletions cardano-cli/src/Cardano/CLI/EraBased/Run/StakeAddress.hs
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,18 @@ runStakeAddressCmds = \case
runStakeAddressVoteDelegationCertificateCmd w stakeIdentifier voteDelegationTarget outputFp
StakeAddressDeregistrationCertificateCmd sbe stakeIdentifier mDeposit outputFp ->
runStakeAddressDeregistrationCertificateCmd sbe stakeIdentifier mDeposit outputFp
StakeAddressRegistrationAndDelegationCertificateCmd w stakeIdentifier poolVKeyOrHashOrFile deposit outFp ->
runStakeAddressRegistrationAndDelegationCertificateCmd w stakeIdentifier poolVKeyOrHashOrFile deposit outFp
StakeAddressRegistrationAndDelegationCertificateCmd
w
stakeIdentifier
poolVKeyOrHashOrFile
deposit
outFp ->
runStakeAddressRegistrationAndDelegationCertificateCmd
w
stakeIdentifier
poolVKeyOrHashOrFile
deposit
outFp

runStakeAddressKeyGenCmd
:: ()
Expand Down Expand Up @@ -355,4 +365,6 @@ runStakeAddressRegistrationAndDelegationCertificateCmd w stakeVerifier poolVKeyO
firstExceptT StakeAddressCmdWriteFileError
. newExceptT
$ writeLazyByteStringFile outFp
$ textEnvelopeToJSON (Just @TextEnvelopeDescr "Stake address registration and stake delegation certificate") certificate
$ textEnvelopeToJSON
(Just @TextEnvelopeDescr "Stake address registration and stake delegation certificate")
certificate
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ hprop_golden_conway_stakeaddress_register_and_delegate_pool =
vkeyPool <- noteInputFile "test/cardano-cli-golden/files/input/conway/poolCold.vkey"
certFile <- H.noteTempFile tempDir "cert"
certGold <-
H.note "test/cardano-cli-golden/files/golden/governance/stakeaddress/registerAddressDelegateToPool.cert"
H.note
"test/cardano-cli-golden/files/golden/governance/stakeaddress/registerAddressDelegateToPool.cert"

void $
execCardanoCLI
Expand Down

0 comments on commit 63af950

Please sign in to comment.