Skip to content
This repository has been archived by the owner on Oct 6, 2023. It is now read-only.

Commit

Permalink
Fix old proxyAdmin checking logic
Browse files Browse the repository at this point in the history
  • Loading branch information
0xNeshi committed Sep 13, 2023
1 parent 066c59e commit 2a4cecc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion contract-address.json
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@
"factory": "0x790094B9fdC8C8a83507f7Eb275DEe903Ffd71eD",
"implementation": "0x562EcE7daE572a5352D50562C472CBd41402F310"
},
"proxyAdmin": "0x0d60924d99B5C75Ce8A6698b44Fa864fdC84A2C9"
"proxyAdmin": "0x79AF01164e25B9c6Ff828A5f795CFA62A635CFC3"
},
"registrar": {
"implementation": "0xfC8caFA21dc76a1065494E213dE9F94E788DaAC9",
Expand Down
7 changes: 4 additions & 3 deletions tasks/manage/changeProxyAdmin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,13 @@ task("manage:changeProxyAdmin", "Will update the proxy admin the target proxy co

const proxyAdminOwner = await getProxyAdminOwner(hre, taskArgs.proxyAdminPkey);

if (addresses.multiSig.proxyAdmin === targetAddress) {
const proxyContract = ProxyContract__factory.connect(taskArgs.proxy, hre.ethers.provider);
const curAdmin = await proxyContract.getAdmin();

if (curAdmin === targetAddress) {
return logger.out(`"${targetAddress}" is already the proxy admin.`);
}

const proxyContract = ProxyContract__factory.connect(taskArgs.proxy, hre.ethers.provider);
const curAdmin = await proxyContract.getAdmin();
logger.out(`Current Admin: ${curAdmin}`);

// submitting the Tx
Expand Down

0 comments on commit 2a4cecc

Please sign in to comment.