@@ -8,7 +8,7 @@ import Test.Hydra.Prelude
8
8
import Cardano.Api.UTxO qualified as UTxO
9
9
import CardanoNode (withCardanoNodeDevnet )
10
10
import Control.Concurrent.Async (replicateConcurrently )
11
- import Hydra.Cardano.Api (Coin (.. ), selectLovelace , txOutValue )
11
+ import Hydra.Cardano.Api (Coin (.. ), selectLovelace )
12
12
import Hydra.Chain.Backend qualified as Backend
13
13
import Hydra.Chain.CardanoClient (QueryPoint (.. ))
14
14
import Hydra.Chain.Direct (DirectBackend (.. ))
@@ -54,13 +54,13 @@ spec =
54
54
returnFundsToFaucet tracer backend actor
55
55
remaining <- Backend. queryUTxOFor backend QueryTip vk
56
56
finalFaucetFunds <- Backend. queryUTxOFor backend QueryTip faucetVk
57
- UTxO. foldMap txOutValue remaining `shouldBe` mempty
57
+ UTxO. totalValue remaining `shouldBe` mempty
58
58
59
59
-- check the faucet has one utxo extra in the end
60
60
UTxO. size finalFaucetFunds `shouldBe` UTxO. size initialFaucetFunds + 1
61
61
62
- let initialFaucetValue = selectLovelace (UTxO. foldMap txOutValue initialFaucetFunds)
63
- let finalFaucetValue = selectLovelace (UTxO. foldMap txOutValue finalFaucetFunds)
62
+ let initialFaucetValue = selectLovelace (UTxO. totalValue initialFaucetFunds)
63
+ let finalFaucetValue = selectLovelace (UTxO. totalValue finalFaucetFunds)
64
64
let difference = initialFaucetValue - finalFaucetValue
65
65
-- difference between starting faucet amount and final one should
66
66
-- just be the amount of paid fees
0 commit comments