From 61576b9c22ed0a0ec1e365e8b775363693b5f7d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Hurlin?= Date: Wed, 3 Jul 2024 14:52:52 +0200 Subject: [PATCH] Remove the unused output options from runTxBuild --- cardano-cli/src/Cardano/CLI/EraBased/Run/Transaction.hs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cardano-cli/src/Cardano/CLI/EraBased/Run/Transaction.hs b/cardano-cli/src/Cardano/CLI/EraBased/Run/Transaction.hs index 5cc6cc226a..bf29374254 100644 --- a/cardano-cli/src/Cardano/CLI/EraBased/Run/Transaction.hs +++ b/cardano-cli/src/Cardano/CLI/EraBased/Run/Transaction.hs @@ -215,7 +215,6 @@ runTransactionBuildCmd requiredSigners txAuxScripts txMetadata mProp mOverrideWitnesses votingProceduresAndMaybeScriptWits proposals (unFeatured <$> featuredCurrentTreasuryValueM) treasuryDonation - buildOutputOptions -- TODO: Calculating the script cost should live as a different command. -- Why? Because then we can simply read a txbody and figure out @@ -753,7 +752,6 @@ runTxBuild :: () -> [(Proposal era, Maybe (ScriptWitness WitCtxStake era))] -> Maybe TxCurrentTreasuryValue -> Maybe TxTreasuryDonation - -> TxBuildOutputOptions -> ExceptT TxCmdError IO (BalancedTxBody era) runTxBuild sbe socketPath networkId mScriptValidity @@ -761,8 +759,8 @@ runTxBuild (TxOutChangeAddress changeAddr) valuesWithScriptWits mLowerBound mUpperBound certsAndMaybeScriptWits withdrawals reqSigners txAuxScripts txMetadata txUpdateProposal mOverrideWits votingProcedures proposals - mCurrentTreasuryValue mTreasuryDonation - _outputOptions = shelleyBasedEraConstraints sbe $ do + mCurrentTreasuryValue mTreasuryDonation = + shelleyBasedEraConstraints sbe $ do -- TODO: All functions should be parameterized by ShelleyBasedEra -- as it's not possible to call this function with ByronEra