Skip to content

Commit 98ee226

Browse files
committed
Print estimated transaction fee in transaction build-estimate
1 parent f394be8 commit 98ee226

File tree

1 file changed

+3
-1
lines changed
  • cardano-cli/src/Cardano/CLI/EraBased/Transaction

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ runTransactionBuildEstimateCmd -- TODO change type
510510
collectTxBodyScriptWitnesses sbe txBodyContent
511511
]
512512

513-
BalancedTxBody _ balancedTxBody _ _ <-
513+
BalancedTxBody _ balancedTxBody _ fee <-
514514
fromEitherCli $
515515
first TxCmdFeeEstimationError $
516516
estimateBalancedTxBody
@@ -535,6 +535,8 @@ runTransactionBuildEstimateCmd -- TODO change type
535535
then writeTxFileTextEnvelopeCanonical sbe txBodyOutFile noWitTx
536536
else writeTxFileTextEnvelope sbe txBodyOutFile noWitTx
537537

538+
liftIO . putStrLn . docToString $ "Estimated transaction fee:" <+> pretty fee
539+
538540
-- TODO: Update type in cardano-api to be more generic then delete this
539541
toShelleyLedgerPParamsShim
540542
:: Exp.Era era -> L.PParams (Exp.LedgerEra era) -> L.PParams (ShelleyLedgerEra era)

0 commit comments

Comments
 (0)