Skip to content

Commit

Permalink
chore: fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
errfrom committed Aug 16, 2023
1 parent 187fff0 commit 2d1ee4e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Internal/BalanceTx/BalanceTx.purs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import Ctl.Internal.BalanceTx.Constraints
( _changeAddress
, _changeDatum
, _maxChangeOutputTokenQuantity
, _nonSpendableInputs
, _selectionStrategy
, _srcAddresses
) as Constraints
Expand Down Expand Up @@ -288,7 +287,7 @@ setTransactionCollateral changeAddr transaction = do
isSpendable =
\(TransactionUnspentOutput { input, output }) ->
not (Set.member input nonSpendableSet) &&
not (any (\p -> p input output) nonSpendableInputsPredicates)
not (any (\f -> f input output) nonSpendableInputsPredicates)
pure $ Array.filter isSpendable rawCollateral
addTxCollateralReturn collateral (addTxCollateral collateral transaction)
changeAddr
Expand Down Expand Up @@ -381,7 +380,7 @@ runBalancer p = do
spendable :: Boolean
spendable = not $ or
[ Set.member oref nonSpendableInputs
, any (\p -> p oref output)
, any (\f -> f oref output)
constraints.nonSpendableInputsPredicates
, Set.member oref
( p.transaction ^. _transaction <<< _body <<<
Expand Down

0 comments on commit 2d1ee4e

Please sign in to comment.