Skip to content

Commit 3d38bf8

Browse files
committed
chore: Comment script
1 parent 16d538c commit 3d38bf8

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

scripts/upgrades/dry-run.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
set -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

910
DEPLOYMENTS_FOLDER=''
@@ -12,13 +13,14 @@ if [ "${ARBITRUM_SEPOLIA_FORK}" == "true" ]; then
1213
elif [ "${ARBITRUM_FORK}" == "true" ]; then
1314
DEPLOYMENTS_FOLDER=arbitrum
1415
fi
15-
16+
# Copy the forked network deployments to the hardhat network folder.
1617
rm -rf deployments/hardhat
1718
cp -r deployments/${DEPLOYMENTS_FOLDER} deployments/hardhat
19+
# Stage the old deployments to have a clean diff after the upgrade script run.
1820
cp .gitignore .gitignore.bak
1921
sed -i '/deployments\/hardhat/d' .gitignore
2022
git add deployments/hardhat
23+
# Run the upgrade and print the git diff.
2124
npx hardhat run scripts/upgrades/${UPGRADE_SCRIPT} --network hardhat
22-
# Print the changes made during the dry run
2325
git --no-pager diff --name-status
2426
mv .gitignore.bak .gitignore

0 commit comments

Comments
 (0)