Skip to content

Commit c00e467

Browse files
committed
use slot len to await funds in plutip-server
1 parent 15ecb84 commit c00e467

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plutip-server/Api/Handlers.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ import Test.Plutip.Internal.BotPlutusInterface.Setup (keysDir)
2929
import Test.Plutip.Internal.BotPlutusInterface.Wallet
3030
( BpiWallet(signKey), addSomeWallet, cardanoMainnetAddress )
3131
import Test.Plutip.Internal.Cluster (RunningNode (RunningNode))
32-
import Test.Plutip.Internal.Cluster.Extra.Types (ExtraConfig (ExtraConfig))
32+
import Test.Plutip.Internal.Cluster.Extra.Types (ExtraConfig (ExtraConfig, ecSlotLength))
3333
import Test.Plutip.Internal.LocalCluster (startCluster, stopCluster)
34-
import Test.Plutip.Internal.Types (ClusterEnv (runningNode))
34+
import Test.Plutip.Internal.Types (ClusterEnv (runningNode, plutipConf))
3535
import Types (
3636
AppM,
3737
ClusterStartupFailureReason (
@@ -100,7 +100,7 @@ startClusterHandler
100100
for keysToGenerate $ \lovelaceAmounts -> do
101101
addSomeWallet (fromInteger . unLovelace <$> lovelaceAmounts)
102102
liftIO $ putStrLn "Waiting for wallets to be funded..."
103-
awaitFunds wallets 2
103+
awaitFunds wallets (ecSlotLength $ extraConfig $ plutipConf env)
104104
pure (env, wallets)
105105
getNodeSocketFile (runningNode -> RunningNode conn _ _ _) = nodeSocketFile conn
106106
getNodeConfigFile =

0 commit comments

Comments
 (0)