Skip to content

Commit

Permalink
chore(script): update upgrade script
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbeckers committed Aug 28, 2023
1 parent 7beb7cb commit 36db1ff
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions contracts/tasks/upgrade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,12 @@ task("propose-upgrade", "Propose an upgrade to OpenZeppelin Defender")
.addParam("multisig", "Owner multisig address")
.setAction(async ({ proxy, multisig }, { ethers, upgrades }) => {
const HypercertMinter = await ethers.getContractFactory("HypercertMinter");
console.log("Proposing upgrade..");
console.log(`Proposing upgrade to multisig ${multisig} as address ${proxy}`);
const proposal = await defender.proposeUpgrade(proxy, HypercertMinter, {
multisig
description: "Add batch burning methods",
multisig,
multisigType: "Gnosis Safe",
title: "Add batch burn",
});
console.log("Upgrade proposal created at: ", proposal.url);
});

0 comments on commit 36db1ff

Please sign in to comment.