10grans-ng/scripts/deploy-local.sh

18 lines
336 B
Bash
Raw Normal View History

2023-08-20 14:27:29 +00:00
#!/bin/sh
NODE_ENV=local
export NODE_ENV
nc -z "127.0.0.1" 8545 >/dev/null 2>&1
if [ "$?" -ne 0 ]
then
echo "local node not running" >&2
exit 1
fi
npx hardhat compile
# Same network, for testing reasons only
npx hardhat --network base-local run scripts/deploy-l1.ts
npx hardhat --network base-local run scripts/deploy-l2.ts