Skip to content
This repository was archived by the owner on Dec 4, 2024. It is now read-only.

Commit 000bfa1

Browse files
committed
broken Contract deployment
1 parent 4ebc936 commit 000bfa1

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

devenv/integration/docker/entrypoint

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ set -ueo >/dev/null
44
STACKS=$PROJECT_NAME-stacks-1
55
API_URL=http://$STACKS:20443/v2/info
66

7-
# makes sure the node is ready before proceeding
7+
# --- make sure the node is ready before proceeding
8+
89
# stacks node get info
910
echo "Waiting on Stacks API"
1011
while ! curl -s $API_URL >/dev/null; do
@@ -18,7 +19,16 @@ echo "Waiting on burn block height $DEV_READY_HEIGHT"
1819
while [ "$(curl -s $API_URL | jq '.burn_block_height')" -lt $DEV_READY_HEIGHT ]; do
1920
sleep 2
2021
done
22+
23+
#stacks ready to take contracts
24+
STACKS_HEIGHT=2
25+
echo "Waiting on Stacks height $STACKS_HEIGHT"
26+
while [ "$(curl -s $API_URL | jq '.stacks_tip_height')" -lt $STACKS_HEIGHT ]; do
27+
sleep 2
28+
done
29+
2130
# any other service checks
31+
2232
# push contracts
2333
cd romeo/asset-contract
2434
clarinet deployments apply -d -p deployments/default.devnet-plan.yaml

0 commit comments

Comments
 (0)