Skip to content

Commit

Permalink
Use testMaximumOutputTokenQuantity in CoinSelectionSpec.
Browse files Browse the repository at this point in the history
This constant was already defined within `CoinSelectionSpec`, but for
some reason `CoinSelectionSpec` was depending on a similar constant
(with an identical value) in `Primitive.Tx.Constraints`.
  • Loading branch information
jonathanknowles committed Oct 17, 2023
1 parent d0986cf commit e219a77
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/coin-selection/test/spec/Cardano/CoinSelectionSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@ import Cardano.Wallet.Primitive.Types.TokenMap.Gen
( genAssetId, genTokenMap, shrinkTokenMap )
import Cardano.Wallet.Primitive.Types.TokenQuantity
( TokenQuantity (..) )
import Cardano.Wallet.Primitive.Types.Tx.Constraints
( txOutMaxTokenQuantity )
import Control.Monad
( forM_ )
import Control.Monad.Trans.Except
Expand Down Expand Up @@ -611,7 +609,7 @@ genOutputsToCover = do
]
where
limit :: Natural
limit = unTokenQuantity txOutMaxTokenQuantity
limit = unTokenQuantity testMaximumOutputTokenQuantity

shrinkOutputsToCover
:: [(TestAddress, TokenBundle)] -> [[(TestAddress, TokenBundle)]]
Expand Down

0 comments on commit e219a77

Please sign in to comment.