Skip to content

Commit c380308

Browse files
committed
pickTokensToDeposit ignores ADA now
1 parent d93d029 commit c380308

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

hydra-node/test/Hydra/API/HTTPServerSpec.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,7 @@ apiServerSpec = do
603603
CannotFindOwnInitial{} -> cover 1 True "CannotFindOwnInitial"
604604
DepositTooLow{} -> cover 1 True "DepositTooLow"
605605
AmountTooLow{} -> cover 1 True "AmountTooLow"
606+
FailedToConstructDepositTx{} -> cover 1 True "FailedToConstructDepositTx"
606607
_ -> property
607608
checkCoverage
608609
$ coverage
@@ -627,6 +628,7 @@ apiServerSpec = do
627628
CannotFindOwnInitial{} -> 400
628629
DepositTooLow{} -> 400
629630
AmountTooLow{} -> 400
631+
FailedToConstructDepositTx{} -> 400
630632
_ -> 500
631633

632634
describe "POST /transaction" $ do

hydra-tx/test/Hydra/Tx/DepositSpec.hs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -347,12 +347,10 @@ testAssetName3 = "TestToken3"
347347
utxoWithTokens :: [(PolicyId, AssetName, Quantity)] -> UTxO
348348
utxoWithTokens tokens =
349349
let value = fromList $ map (\(pid, aname, qty) -> (AssetId pid aname, qty)) tokens
350-
-- Add some ADA to make it a valid UTxO
351-
valueWithAda = value <> fromList [(AdaAssetId, Quantity 1000000)]
352350
txIn = generateWith arbitrary 42
353351
baseTxOut = generateWith arbitrary 42
354352
-- Update the txOut to have our custom value
355-
txOut = baseTxOut{txOutValue = valueWithAda}
353+
txOut = baseTxOut{txOutValue = value}
356354
in UTxO.singleton txIn txOut
357355

358356
-- * Property tests for splitTokens

0 commit comments

Comments
 (0)