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

17 lines
276 B
Bash
Executable File

#!/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