From 634df2183b1938523bec0456f0abc39cf21e6bfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=B2=D0=B0=D0=BD=20Vandot?= Date: Fri, 12 Apr 2024 15:00:25 +0200 Subject: [PATCH] chore: spin up hardhat local node (#247) --- docker/deploy.sh | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) mode change 100644 => 100755 docker/deploy.sh diff --git a/docker/deploy.sh b/docker/deploy.sh old mode 100644 new mode 100755 index 18adbe12..881da155 --- a/docker/deploy.sh +++ b/docker/deploy.sh @@ -1,13 +1,7 @@ #!/usr/bin/env sh set -x -while ! curl -m 1 http://geth-swap:8545; do sleep 1; done -echo connected to geth >&2 -sleep 2 -npx hardhat deploy --network localcluster +cd ./s3 && while ! curl -m 1 -H "Content-Type: application/json" --data "{\"jsonrpc\":\"2.0\",\"method\":\"net_version\",\"params\":[],\"id\":67}" http://localhost:8545; do sleep 1; done && npx hardhat deploy --network localhost & -cd ./s3 -npx hardhat deploy --network localcluster - -echo deployed +yarn hardhat node