Skip to content

Commit

Permalink
chore: spin up hardhat local node (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
Иван Vandot authored Apr 12, 2024
1 parent 0886e51 commit 634df21
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions docker/deploy.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 634df21

Please sign in to comment.