Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Bromel777 committed Jun 13, 2023
1 parent 453c884 commit 74a8e40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
6 changes: 2 additions & 4 deletions submit-api/src/SubmitAPI/Internal/Balancing.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{-# LANGUAGE OverloadedStrings #-}

module SubmitAPI.Internal.Balancing where

import Prelude
Expand Down Expand Up @@ -259,9 +257,9 @@ makeTransactionBodyAutoBalance eraInMode systemstart history pparams
| otherwise = do
let chargeBoxWillBeMerged = isJust $ find (\(TxOut boxAddr _ _ _) -> boxAddr == changeaddr) outs
if chargeBoxWillBeMerged
then
then
Right ()
else
else
case checkMinUTxOValue (TxOut changeaddr balance TxOutDatumNone ReferenceScriptNone) pparams of
Left (TxBodyErrorMinUTxONotMet txOutAny minUTxO) ->
Left $ TxBodyErrorAdaBalanceTooSmall txOutAny minUTxO (txOutValueToLovelace balance)
Expand Down
5 changes: 0 additions & 5 deletions submit-api/submit-api.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -141,16 +141,13 @@ test-suite submit-api-tests
, base16-bytestring
, bytestring
, plutus-ledger-api
, quickblue
, cardano-api
, ouroboros-consensus
, random
, plutus-tx
, plutus-ledger-api
, plutus-script-utils
, ergo-hs-common
, plutus-ledger
, hlog
, containers
, random-strings
, plutus-core
Expand All @@ -159,9 +156,7 @@ test-suite submit-api-tests
, submit-api
, cardano-tx
, network-api
, memory
, wallet-api
, serialise
, resourcet
, cardano-dex-contracts-offchain
, cardano-ledger-alonzo

0 comments on commit 74a8e40

Please sign in to comment.