Skip to content

Commit 5ba8edc

Browse files
committed
upgrades: uncomment validity check
1 parent c933b91 commit 5ba8edc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/cli/commands/upgrade.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ export const upgrade = async (cli: CLIEnvironment, cliArgs: CLIArgs): Promise<vo
5656
}
5757

5858
// Upgrade to new implementation
59-
// const pendingImplementation = (await proxy.functions['pendingImplementation']())[0]
60-
// if (pendingImplementation != implAddress) {
61-
await sendTransaction(cli.wallet, proxy, 'upgradeTo', ...[implAddress])
62-
// }
59+
const pendingImplementation = (await proxy.functions['pendingImplementation']())[0]
60+
if (pendingImplementation != implAddress) {
61+
await sendTransaction(cli.wallet, proxy, 'upgradeTo', ...[implAddress])
62+
}
6363

6464
// Accept upgrade from the implementation
6565
const contractArgs = initArgs ? initArgs.split(',') : []

0 commit comments

Comments
 (0)