File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -13,12 +13,16 @@ if [ "${ARBITRUM_SEPOLIA_FORK}" == "true" ]; then
1313elif [ " ${ARBITRUM_FORK} " == " true" ]; then
1414 DEPLOYMENTS_FOLDER=arbitrum
1515fi
16+ if [ -z " ${DEPLOYMENTS_FOLDER} " ]; then
17+ echo " Error: You must set either ARBITRUM_SEPOLIA_FORK=true or ARBITRUM_FORK=true."
18+ exit 1
19+ fi
1620# Copy the forked network deployments to the hardhat network folder.
1721rm -rf deployments/hardhat
1822cp -r deployments/${DEPLOYMENTS_FOLDER} deployments/hardhat
1923# Stage the old deployments to have a clean diff after the upgrade script run.
2024cp .gitignore .gitignore.bak
21- sed -i ' /deployments\/hardhat/d' .gitignore
25+ sed -i ' ' ' /deployments\/hardhat/d' .gitignore
2226git add deployments/hardhat
2327# Run the upgrade and print the git diff.
2428npx hardhat run scripts/upgrades/${UPGRADE_SCRIPT} --network hardhat
You can’t perform that action at this time.
0 commit comments