Skip to content

Commit feffd34

Browse files
committed
transaction submit: print transaction hash
1 parent 447fa87 commit feffd34

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cardano-cli/src/Cardano/CLI/EraBased/Run/Transaction.hs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1483,7 +1483,9 @@ runTransactionSubmitCmd
14831483

14841484
res <- liftIO $ submitTxToNodeLocal localNodeConnInfo txInMode
14851485
case res of
1486-
Net.Tx.SubmitSuccess -> liftIO $ Text.putStrLn "Transaction successfully submitted."
1486+
Net.Tx.SubmitSuccess -> do
1487+
liftIO $ Text.putStrLn "Transaction successfully submitted. Transaction hash is:"
1488+
liftIO $ BS.putStrLn $ serialiseToRawBytesHex (getTxId $ getTxBody tx)
14871489
Net.Tx.SubmitFail reason ->
14881490
case reason of
14891491
TxValidationErrorInCardanoMode err -> left . TxCmdTxSubmitError . Text.pack $ show err

0 commit comments

Comments
 (0)