From 65939bbac1eabb97fde68b56642eb17f535367d8 Mon Sep 17 00:00:00 2001 From: maskpp Date: Fri, 29 Mar 2024 16:02:09 +0800 Subject: [PATCH] chore(test): update docker compose configs (#669) --- internal/docker/docker_env.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/docker/docker_env.sh b/internal/docker/docker_env.sh index f39689e25..ccaab9a03 100755 --- a/internal/docker/docker_env.sh +++ b/internal/docker/docker_env.sh @@ -3,13 +3,13 @@ DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # check until L1 chain is ready -L1_PROBE_URL=http://localhost:$(docker port l1_node | grep '0.0.0.0' | awk -F ':' '{print $2}') +L1_PROBE_URL=ws://localhost:$(docker port l1_node | grep '0.0.0.0' | awk -F ':' '{print $2}') until cast chain-id --rpc-url "$L1_PROBE_URL" 2> /dev/null; do sleep 1 done # check until L2 chain is ready -L2_PROBE_URL=http://localhost:$(docker port l2_node | grep "0.0.0.0" | awk -F ':' 'NR==1 {print $2}') +L2_PROBE_URL=ws://localhost:$(docker port l2_node | grep "0.0.0.0" | awk -F ':' 'NR==2 {print $2}') until cast chain-id --rpc-url "$L2_PROBE_URL" 2> /dev/null; do sleep 1 done