Skip to content

Commit

Permalink
Add UPGRADE_ALL env for schains upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
yavrsky committed Nov 21, 2024
1 parent 0381294 commit 61d839f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions migrations/upgradeSchain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@ async function updateAbi(contracts: string[]) {
async function main() {
const pathToManifest: string = process.env.MANIFEST || "";
await manifestSetup(pathToManifest);
let contractNamesToUpgrade = [
]
if (process.env.UPGRADE_ALL) {
contractNamesToUpgrade = contracts;

Check failure on line 98 in migrations/upgradeSchain.ts

View workflow job for this annotation

GitHub Actions / test-contracts

'contractNamesToUpgrade' is assigned a value but never used

Check failure on line 98 in migrations/upgradeSchain.ts

View workflow job for this annotation

GitHub Actions / test-contracts

'contractNamesToUpgrade' is assigned a value but never used
}
const upgrader = new ImaSchainUpgrader(
"2.1.0",
await getImaSchainInstance(),
Expand Down
1 change: 1 addition & 0 deletions scripts/test_upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ MESSAGE_PROXY_FOR_SCHAIN=$(cat data/$ABI_FILENAME_SCHAIN | jq -r .message_proxy_
# ABI="data/$ABI_FILENAME_SCHAIN" \
# MANIFEST="data/ima-schain-$DEPLOYED_VERSION-manifest.json" \
# CHAIN_NAME_SCHAIN="Test" \
# UPGRADE_ALL=true \
# ALLOW_NOT_ATOMIC_UPGRADE="OK" \
# TARGET="$MESSAGE_PROXY_FOR_SCHAIN" \
# VERSION=$VERSION_TAG \
Expand Down

0 comments on commit 61d839f

Please sign in to comment.