Skip to content

Commit

Permalink
transaction submit: print transaction hash
Browse files Browse the repository at this point in the history
  • Loading branch information
smelc committed Nov 7, 2024
1 parent 808d843 commit 3d8aefa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cardano-cli/src/Cardano/CLI/EraBased/Run/Transaction.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1483,7 +1483,9 @@ runTransactionSubmitCmd

res <- liftIO $ submitTxToNodeLocal localNodeConnInfo txInMode
case res of
Net.Tx.SubmitSuccess -> liftIO $ Text.putStrLn "Transaction successfully submitted."
Net.Tx.SubmitSuccess -> do
liftIO $ Text.putStrLn "Transaction successfully submitted. Transaction hash is:"
liftIO $ BS.putStrLn $ serialiseToRawBytesHex (getTxId $ getTxBody tx)
Net.Tx.SubmitFail reason ->
case reason of
TxValidationErrorInCardanoMode err -> left . TxCmdTxSubmitError . Text.pack $ show err
Expand Down

0 comments on commit 3d8aefa

Please sign in to comment.