Skip to content

Commit

Permalink
force import existing proxy and implementation addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Leonard authored and Robert Leonard committed Sep 26, 2023
1 parent 4248bad commit 5348db1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/upgradeProxyImplementation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ async function main() {

//@ts-ignore
const didRegistryContract = await ethers.getContractFactory("DIDRegistry", relaySigner);

// Import the proxy and implementation contract so they are resolved
await defender.forceImport(process.env.DID_REGISTRY_PROXY_ADDRESS!, didRegistryContract, {kind: 'uups'});

const proposalResponse = await defender.proposeUpgrade(process.env.DID_REGISTRY_PROXY_ADDRESS!, didRegistryContract, {
multisig: process.env.GNOSIS_ADDRESS!,
kind: 'uups',
Expand Down

0 comments on commit 5348db1

Please sign in to comment.