Skip to content

Commit 84aa453

Browse files
committed
Resolve runTransactionBuildRawCmd
1 parent 0d78776 commit 84aa453

File tree

1 file changed

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

1 file changed

+7
-7
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ import Cardano.CLI.Type.Error.TxValidationError
7979
import Cardano.CLI.Type.Output (renderScriptCostsWithScriptHashesMap)
8080
import Cardano.Ledger.Api (allInputsTxBodyF, bodyTxL)
8181
import Cardano.Prelude (putLByteString)
82-
import Cardano.Prelude qualified as Exp
8382

8483
import RIO hiding (toList)
8584

@@ -497,6 +496,7 @@ runTransactionBuildEstimateCmd -- TODO change type
497496
votingProceduresAndMaybeScriptWits
498497
proposals
499498
currentTreasuryValueAndDonation
499+
500500
let stakeCredentialsToDeregisterMap = fromList $ catMaybes [getStakeDeregistrationInfo cert | (cert, _) <- certsAndMaybeScriptWits]
501501
drepsToDeregisterMap =
502502
fromList $
@@ -645,6 +645,7 @@ runTransactionBuildRawCmd
645645

646646
let mLedgerPParams = LedgerProtocolParameters <$> pparams
647647

648+
-- TODO: Remove me
648649
txUpdateProposal <- case mUpdateProprosalFile of
649650
Just (Featured w (Just updateProposalFile)) ->
650651
fromExceptTCli $ readTxUpdateProposal w updateProposalFile
@@ -701,7 +702,8 @@ runTransactionBuildRawCmd
701702
proposals
702703
currentTreasuryValueAndDonation
703704

704-
let noWitTx = makeSignedTransaction [] txBody
705+
let Exp.UnsignedTx lTx = txBody
706+
noWitTx = ShelleyTx (convert eon) lTx
705707
fromEitherIOCli $
706708
if isCborOutCanonical == TxCborCanonical
707709
then writeTxFileTextEnvelopeCanonical (convert Exp.useEra) txBodyOutFile noWitTx
@@ -741,7 +743,7 @@ runTxBuildRaw
741743
-> [(VotingProcedures era, Maybe (VoteScriptWitness era))]
742744
-> [(Proposal era, Maybe (ProposalScriptWitness era))]
743745
-> Maybe (TxCurrentTreasuryValue, TxTreasuryDonation)
744-
-> Either TxCmdError (TxBody era)
746+
-> Either TxCmdError (Exp.UnsignedTx era)
745747
runTxBuildRaw
746748
mScriptValidity
747749
inputsAndMaybeScriptWits
@@ -763,8 +765,6 @@ runTxBuildRaw
763765
votingProcedures
764766
proposals
765767
mCurrentTreasuryValueAndDonation = do
766-
let sbe = convert Exp.useEra
767-
-- pp =
768768
txBodyContent <-
769769
constructTxBodyContent
770770
mScriptValidity
@@ -787,8 +787,8 @@ runTxBuildRaw
787787
votingProcedures
788788
proposals
789789
mCurrentTreasuryValueAndDonation
790-
error "TODO"
791-
first TxCmdTxBodyError $ createTransactionBody sbe undefined
790+
791+
return $ Exp.makeUnsignedTx Exp.useEra txBodyContent
792792

793793
constructTxBodyContent
794794
:: forall era

0 commit comments

Comments
 (0)