Skip to content

Commit

Permalink
Progress
Browse files Browse the repository at this point in the history
  • Loading branch information
smelc committed May 16, 2024
1 parent 8a97678 commit f54073c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions cardano-cli/src/Cardano/CLI/EraBased/Run/Transaction.hs
Original file line number Diff line number Diff line change
Expand Up @@ -284,9 +284,7 @@ runTransactionBuildEstimateCmd
, txBodyOutFile
} = do
let sbe = maryEraOnwardsToShelleyBasedEra eon
legacyPParams <- firstExceptT TxCmdProtocolParamsError $ readProtocolParameters protocolParamsFile
ledgerPParams <- hoistEither . first TxCmdProtocolParamsConverstionError
$ convertToLedgerProtocolParameters sbe legacyPParams
ledgerPParams <- firstExceptT TxCmdProtocolParamsError $ readProtocolParameters sbe protocolParamsFile
inputsAndMaybeScriptWits <- firstExceptT TxCmdScriptWitnessError
$ readScriptWitnessFiles sbe txins
certFilesAndMaybeScriptWits <- firstExceptT TxCmdScriptWitnessError
Expand Down Expand Up @@ -337,7 +335,7 @@ runTransactionBuildEstimateCmd

txBodyContent <- hoistEither $ constructTxBodyContent
sbe mScriptValidity
(Just $ unLedgerProtocolParameters ledgerPParams)
(Just ledgerPParams)
inputsAndMaybeScriptWits
readOnlyRefIns
filteredTxinsc
Expand Down Expand Up @@ -366,7 +364,7 @@ runTransactionBuildEstimateCmd

BalancedTxBody _ balancedTxBody _ _ <-
hoistEither $ first TxCmdFeeEstimationError $
estimateBalancedTxBody eon txBodyContent (unLedgerProtocolParameters ledgerPParams) poolsToDeregister
estimateBalancedTxBody eon txBodyContent ledgerPParams poolsToDeregister
stakeCredentialsToDeregisterMap drepsToDeregisterMap
pScriptExecUnits totCol shelleyWitnesses (fromMaybe 0 mByronWitnesses)
(fromMaybe 0 (unReferenceScriptSize <$> totalReferenceScriptSize)) (anyAddressInShelleyBasedEra sbe changeAddr)
Expand Down

0 comments on commit f54073c

Please sign in to comment.