18 lines
336 B
Bash
18 lines
336 B
Bash
|
#!/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
|