@@ -7,7 +7,7 @@ import Cardano.Api.UTxO qualified as UTxO
7
7
import CardanoClient (RunningNode (.. ))
8
8
import CardanoNode (withCardanoNodeDevnet )
9
9
import Control.Concurrent.Async (replicateConcurrently )
10
- import Hydra.Cardano.Api (Coin (.. ), selectLovelace , txOutValue )
10
+ import Hydra.Cardano.Api (Coin (.. ), selectLovelace )
11
11
import Hydra.Chain.CardanoClient (QueryPoint (.. ), queryUTxOFor )
12
12
import Hydra.Cluster.Faucet (FaucetLog , publishHydraScriptsAs , returnFundsToFaucet , seedFromFaucet )
13
13
import Hydra.Cluster.Fixture (Actor (.. ))
@@ -51,13 +51,13 @@ spec =
51
51
returnFundsToFaucet tracer node actor
52
52
remaining <- queryUTxOFor networkId nodeSocket QueryTip vk
53
53
finalFaucetFunds <- queryUTxOFor networkId nodeSocket QueryTip faucetVk
54
- UTxO. foldMap txOutValue remaining `shouldBe` mempty
54
+ UTxO. totalValue remaining `shouldBe` mempty
55
55
56
56
-- check the faucet has one utxo extra in the end
57
57
UTxO. size finalFaucetFunds `shouldBe` UTxO. size initialFaucetFunds + 1
58
58
59
- let initialFaucetValue = selectLovelace (UTxO. foldMap txOutValue initialFaucetFunds)
60
- let finalFaucetValue = selectLovelace (UTxO. foldMap txOutValue finalFaucetFunds)
59
+ let initialFaucetValue = selectLovelace (UTxO. totalValue initialFaucetFunds)
60
+ let finalFaucetValue = selectLovelace (UTxO. totalValue finalFaucetFunds)
61
61
let difference = initialFaucetValue - finalFaucetValue
62
62
-- difference between starting faucet amount and final one should
63
63
-- just be the amount of paid fees
0 commit comments