Skip to content

Commit

Permalink
Adapt to introduction of StateForBalancedTx in API
Browse files Browse the repository at this point in the history
  • Loading branch information
smelc committed Jun 24, 2024
1 parent 6762dbd commit 614e002
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cardano-cli/src/Cardano/CLI/EraBased/Run/Transaction.hs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ runTransactionBuildCmd
& onLeft (left . TxCmdQueryConvenienceError . AcqFailure)
& onLeft (left . TxCmdQueryConvenienceError . QceUnsupportedNtcVersion)

(txEraUtxo, _, eraHistory, systemStart, _, _, _) <-
StateForBalancedTx { txUtxo = txEraUtxo, eraHistory, systemStart } <-
lift (executeLocalStateQueryExpr localNodeConnInfo Consensus.VolatileTip (queryStateForBalancedTx nodeEra allTxInputs []))
& onLeft (left . TxCmdQueryConvenienceError . AcqFailure)
& onLeft (left . TxCmdQueryConvenienceError)
Expand Down Expand Up @@ -799,7 +799,7 @@ runTxBuild
TxCertificates _ cs _ -> cs
_ -> []

(txEraUtxo, pparams, eraHistory, systemStart, stakePools, stakeDelegDeposits, drepDelegDeposits) <-
StateForBalancedTx {txUtxo = txEraUtxo, pparams, eraHistory, systemStart, stakePools, stakeDelegDeposits, drepDelegDeposits } <-
lift (executeLocalStateQueryExpr localNodeConnInfo Consensus.VolatileTip $ queryStateForBalancedTx nodeEra allTxInputs certs)
& onLeft (left . TxCmdQueryConvenienceError . AcqFailure)
& onLeft (left . TxCmdQueryConvenienceError)
Expand All @@ -824,7 +824,7 @@ runTxBuild
txMetadata
txUpdateProposal
votingProcedures proposals
mCurrentTreasuryValue mTreasuryDonation
mCurrentTreasuryValue mTreasuryDonation

firstExceptT TxCmdTxInsDoNotExist
. hoistEither $ txInsExistInUTxO allTxInputs txEraUtxo
Expand Down

0 comments on commit 614e002

Please sign in to comment.