Skip to content

Commit

Permalink
Remove partialLedgerTx synonym.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanknowles committed Nov 15, 2023
1 parent 6bcf185 commit 2ef4c7b
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions lib/balance-tx/lib/internal/Internal/Cardano/Write/Tx/Balance.hs
Original file line number Diff line number Diff line change
Expand Up @@ -690,12 +690,12 @@ balanceTransactionWithSelectionStrategyAndNoZeroAdaAdjustment
selectionStrategy
ptx@(PartialTx partialTx inputUTxO redeemers)
= do
guardExistingCollateral partialLedgerTx
guardExistingTotalCollateral partialLedgerTx
guardExistingReturnCollateral partialLedgerTx
guardExistingCollateral partialTx
guardExistingTotalCollateral partialTx
guardExistingReturnCollateral partialTx
guardWalletUTxOConsistencyWith inputUTxO

(balance0, minfee0, _) <- balanceAfterSettingMinFee partialLedgerTx
(balance0, minfee0, _) <- balanceAfterSettingMinFee partialTx

(extraInputs, extraCollateral', extraOutputs, s') <- do

Expand Down Expand Up @@ -831,8 +831,6 @@ balanceTransactionWithSelectionStrategyAndNoZeroAdaAdjustment
where
era = recentEra @era

partialLedgerTx = partialTx

-- | Extract the inputs from the raw 'tx' of the 'Partialtx', with the
-- corresponding 'TxOut' according to @combinedUTxO@.
--
Expand Down Expand Up @@ -978,7 +976,7 @@ balanceTransactionWithSelectionStrategyAndNoZeroAdaAdjustment
:: TxUpdate
-> ExceptT (ErrBalanceTx era) m (Tx (ShelleyLedgerEra era))
assembleTransaction update = ExceptT . pure $ do
tx' <- left ErrBalanceTxUpdateError $ updateTx era partialLedgerTx update
tx' <- left ErrBalanceTxUpdateError $ updateTx era partialTx update
left ErrBalanceTxAssignRedeemers $
assignScriptRedeemers
era pp timeTranslation combinedUTxO redeemers tx'
Expand Down

0 comments on commit 2ef4c7b

Please sign in to comment.