Skip to content

Commit

Permalink
Silence hlint warning for unnecessary flip in adjustedPartialTx.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanknowles committed Nov 15, 2023
1 parent 2ef4c7b commit cead403
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 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 @@ -576,13 +576,14 @@ balanceTransaction
s
partialTx
= do
let adjustedPartialTx = flip (over #tx) partialTx
( fromCardanoApiTx
. assignMinimalAdaQuantitiesToOutputsWithoutAda
(recentEra @era)
(pparamsLedger pp)
. toCardanoApiTx
)
let adjustedPartialTx =
partialTx & over #tx
( fromCardanoApiTx
. assignMinimalAdaQuantitiesToOutputsWithoutAda
(recentEra @era)
(pparamsLedger pp)
. toCardanoApiTx
)
balanceWith strategy =
balanceTransactionWithSelectionStrategyAndNoZeroAdaAdjustment
@era @m @changeState
Expand Down

0 comments on commit cead403

Please sign in to comment.