Skip to content

Commit

Permalink
Fix bugs in hot-credential init
Browse files Browse the repository at this point in the history
  • Loading branch information
jhbertra committed May 6, 2024
1 parent daf645a commit 44ed3f6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions credential-manager/orchestrator-cli/Commands.hs
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ import Commands.UnlockCold (
)
import Commands.UnlockHot (
UnlockHotCommand,
burnHotCommandParser,
runUnlockHotCommand,
unlockHotCommandParser,
)
import Commands.Vote (VoteCommand, runVoteCommand, voteCommandParser)
import Data.Foldable (Foldable (..))
Expand Down Expand Up @@ -167,7 +167,7 @@ hotNFTCommandParser = info parser description
, command "vote" $ Vote <$> voteCommandParser
, command "resignVoting" $ ResignVoting <$> resignVotingCommandParser
, command "rotate" $ RotateHot <$> rotateHotCommandParser
, command "burn" $ UnlockHot <$> burnHotCommandParser
, command "unlock" $ UnlockHot <$> unlockHotCommandParser
]

-- Implementations
Expand Down
6 changes: 3 additions & 3 deletions credential-manager/orchestrator-cli/Commands/UnlockHot.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module Commands.UnlockHot (
UnlockHotCommand (..),
burnHotCommandParser,
unlockHotCommandParser,
runUnlockHotCommand,
) where

Expand All @@ -23,8 +23,8 @@ newtype UnlockHotCommand = UnlockHotCommand
{ outDir :: FilePath
}

burnHotCommandParser :: ParserInfo UnlockHotCommand
burnHotCommandParser = info parser description
unlockHotCommandParser :: ParserInfo UnlockHotCommand
unlockHotCommandParser = info parser description
where
description :: InfoMod UnlockHotCommand
description = progDesc "Unlock the hot NFT."
Expand Down
2 changes: 1 addition & 1 deletion credential-manager/orchestrator-cli/Commands/Vote.hs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ govActionIxParser :: Parser GovActionIx
govActionIxParser =
option readGovActionIx $
fold
[ long "governance-action-tx-id"
[ long "governance-action-index"
, metavar "WORD32"
, help "Index of the governance action withing the transaction."
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import Cardano.Api (
)
import Cardano.Api.Shelley (hashScript)
import CredentialManager.Orchestrator.Common (serialiseScript)
import CredentialManager.Scripts (coldCommittee)
import CredentialManager.Scripts (hotCommittee)
import GHC.Generics (Generic)
import PlutusLedgerApi.V3 (
CurrencySymbol (CurrencySymbol),
Expand All @@ -37,7 +37,7 @@ initHotCommittee
initHotCommittee InitHotCommitteeInputs{..} = do
let script =
serialiseScript
. coldCommittee
. hotCommittee
. CurrencySymbol
. toBuiltin
$ serialiseToRawBytes nftPolicyId
Expand Down

0 comments on commit 44ed3f6

Please sign in to comment.