Skip to content

Commit

Permalink
Fix last convert error
Browse files Browse the repository at this point in the history
  • Loading branch information
smelc committed Dec 6, 2024
1 parent c64a1fb commit 5768460
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cardano-cli/src/Cardano/CLI/EraBased/Run/Transaction.hs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ import Cardano.CLI.EraBased.Script.Mint.Read
import Cardano.CLI.EraBased.Script.Mint.Types
import Cardano.CLI.EraBased.Transaction.HashCheck (checkCertificateHashes,
checkProposalHashes, checkVotingProcedureHashes)
import Cardano.CLI.Orphans ()
import Cardano.CLI.Read
import Cardano.CLI.Types.Common
import Cardano.CLI.Types.Errors.BootstrapWitnessError
Expand Down Expand Up @@ -396,7 +397,7 @@ runTransactionBuildEstimateCmd -- TODO change type
, txBodyOutFile
} = do
let sbe = convert currentEra
meo = inject @(BabbageEraOnwards era) $ inject currentEra
meo = convert currentEra

ledgerPParams <-
firstExceptT TxCmdProtocolParamsError $ readProtocolParameters sbe protocolParamsFile
Expand Down Expand Up @@ -522,8 +523,8 @@ runTransactionBuildEstimateCmd -- TODO change type

let noWitTx = makeSignedTransaction [] balancedTxBody
lift
( cardanoEraConstraints (toCardanoEra meo) $
writeTxFileTextEnvelopeCddl (convert meo) txBodyOutFile noWitTx
( cardanoEraConstraints (toCardanoEra sbe) $
writeTxFileTextEnvelopeCddl sbe txBodyOutFile noWitTx
)
& onLeft (left . TxCmdWriteFileError)

Expand Down

0 comments on commit 5768460

Please sign in to comment.