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

17 lines
276 B
Bash
Raw Normal View History

2023-08-20 14:57:57 +00:00
#!/bin/sh
NODE_ENV=dev
export NODE_ENV
npx hardhat compile
npx hardhat --network eth-goerli run scripts/deploy-l1.ts
if [ "$?" -eq 0 ]
then
npx hardhat --network base-goerli run scripts/deploy-l2.ts
else
echo "deploy to L1 failed so aborting L2" >&2
exit 1
fi