File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 22set -e
33
44# Usage:
5- # ARBITRUM_SEPOLIA_FORK=true UPGRADE_SCRIPT=<script_name> bash ./scripts/upgrades/dry-run.sh
6- # ARBITRUM_FORK=true UPGRADE_SCRIPT=<script_name> bash ./scripts/upgrades/dry-run.sh
5+ # ARBITRUM_SEPOLIA_FORK=true \
6+ # UPGRADE_SCRIPT=<script_name> \
7+ # bash ./scripts/upgrades/dry-run.sh
78
89
910DEPLOYMENTS_FOLDER=' '
@@ -12,13 +13,14 @@ if [ "${ARBITRUM_SEPOLIA_FORK}" == "true" ]; then
1213elif [ " ${ARBITRUM_FORK} " == " true" ]; then
1314 DEPLOYMENTS_FOLDER=arbitrum
1415fi
15-
16+ # Copy the forked network deployments to the hardhat network folder.
1617rm -rf deployments/hardhat
1718cp -r deployments/${DEPLOYMENTS_FOLDER} deployments/hardhat
19+ # Stage the old deployments to have a clean diff after the upgrade script run.
1820cp .gitignore .gitignore.bak
1921sed -i ' /deployments\/hardhat/d' .gitignore
2022git add deployments/hardhat
23+ # Run the upgrade and print the git diff.
2124npx hardhat run scripts/upgrades/${UPGRADE_SCRIPT} --network hardhat
22- # Print the changes made during the dry run
2325git --no-pager diff --name-status
2426mv .gitignore.bak .gitignore
You can’t perform that action at this time.
0 commit comments