@@ -1351,18 +1351,18 @@ canDepositPartially tracer workDir blockTime backend hydraScriptsTxId =
1351
1351
let tokenDiff = assetsToValue $ Map. fromList $ diffAssets tokenAssets partialTokenAssets
1352
1352
let partialTokenAssetValue = assetsToValue partialTokenAssets
1353
1353
let tokenAssetValueWithoutAda = assetsToValue $ valueToPolicyAssets partialTokenAssetValue
1354
- let seedAmount = 5_000_000
1354
+ let seedAmount = 10_000_000
1355
1355
-- NOTE: We (and also the users) need to make sure we give enough ADA when committing. If deposit tx ADA amount is too low
1356
1356
-- and some ADA is added to it after balancing in the wallet, then we have problems matching on the 'CommitApproved' etc.
1357
- let commitAmount = 3_000_000
1357
+ let commitAmount = 5_000_000
1358
1358
commitUTxOWithoutTokens <- seedFromFaucet backend walletVk (lovelaceToValue seedAmount) (contramap FromFaucet tracer)
1359
1359
commitUTxOWithTokens <- seedFromFaucet backend walletVk (lovelaceToValue seedAmount <> tokenAssetValue) (contramap FromFaucet tracer)
1360
- -- This one is expected to fail since there is 5 ADA at the wallet address but we specified 6 ADA to commit
1361
- (requestCommitTx' n1 commitUTxOWithoutTokens (Just 8_000_000 ) Nothing <&> toJSON)
1360
+ -- This one is expected to fail since there is not enough ADA value
1361
+ (requestCommitTx' n1 commitUTxOWithoutTokens (Just 10_000_001 ) Nothing <&> toJSON)
1362
1362
`shouldThrow` expectErrorStatus 400 (Just " AmountTooLow" )
1363
1363
1364
1364
-- This one is expected to fail since there are no extra assets but we specified some to commit
1365
- (requestCommitTx' n1 commitUTxOWithoutTokens (Just 5_000_000 ) (Just partialTokenAssets) <&> toJSON)
1365
+ (requestCommitTx' n1 commitUTxOWithoutTokens (Just commitAmount ) (Just partialTokenAssets) <&> toJSON)
1366
1366
`shouldThrow` expectErrorStatus 400 (Just " InvalidTokenRequest" )
1367
1367
1368
1368
depositTransaction <- requestCommitTx' n1 commitUTxOWithTokens (Just commitAmount) (Just partialTokenAssets)
0 commit comments