Skip to content

Commit

Permalink
Remove dependency on either in balance-tx
Browse files Browse the repository at this point in the history
  • Loading branch information
HeinrichApfelmus committed Feb 21, 2025
1 parent dcc0e96 commit 13db5c7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion lib/balance-tx/cardano-balance-tx.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ library internal
, cborg >= 0.2.1 && <0.3
, containers >= 0.5 && < 0.8
, deepseq >= 1.4.4 && < 1.6
, either
, fmt >= 0.6.3 && < 0.7
, generic-lens >= 2.2.2.0 && < 2.3
, groups >= 0.5.3 && < 0.6
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ import Control.Lens
( over
, view
)
import Data.Either.Combinators
( maybeToLeft
)
import Data.Maybe
( fromMaybe
)
Expand Down Expand Up @@ -91,7 +88,7 @@ construct
-> UTxO era
-> Either (NESet TxIn) (TxWithUTxO era)
construct tx utxo =
maybeToLeft txWithUTxO (unresolvableInputs txWithUTxO)
maybe (Right txWithUTxO) Left (unresolvableInputs txWithUTxO)
where
txWithUTxO = UnsafeTxWithUTxO tx utxo

Expand Down

0 comments on commit 13db5c7

Please sign in to comment.