Skip to content

Commit

Permalink
Merge #2176
Browse files Browse the repository at this point in the history
2176: Implement "transaction policyid" command r=intricate a=intricate



Co-authored-by: Luke Nadur <[email protected]>
  • Loading branch information
iohk-bors[bot] and intricate authored Dec 5, 2020
2 parents 6136a51 + 19d77cd commit 736e7be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cardano-cli/src/Cardano/CLI/Shelley/Run/Transaction.hs
Original file line number Diff line number Diff line change
Expand Up @@ -565,9 +565,9 @@ runTxCalculateMinFee (TxBodyFile txbodyFile) nw pParamsFile
liftIO $ putStrLn $ (show fee :: String) <> " Lovelace"

runTxCreatePolicyId :: ScriptFile -> ExceptT ShelleyTxCmdError IO ()
runTxCreatePolicyId (ScriptFile _sFile) =
-- Here we would decode the JSON script file and then hash.
liftIO $ putTextLn "Not implemented yet"
runTxCreatePolicyId (ScriptFile sFile) = do
ScriptInAnyLang _ script <- firstExceptT ShelleyTxCmdReadJsonFileError $ readFileScriptInAnyLang sFile
liftIO $ putTextLn $ decodeUtf8 $ serialiseToRawBytesHex $ hashScript script

--TODO: eliminate this and get only the necessary params, and get them in a more
-- helpful way rather than requiring them as a local file.
Expand Down

0 comments on commit 736e7be

Please sign in to comment.