Skip to content

Commit

Permalink
Merge branch 'feature/zksync' of https://github.com/aragon/admin-plugin
Browse files Browse the repository at this point in the history
… into feature/zksync
  • Loading branch information
novaknole committed Jan 20, 2025
2 parents ccac769 + 01d8404 commit a255707
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions packages/contracts/deploy/10_create_repo/11_create_repo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ import {
PluginRepo__factory,
PluginRepoFactory__factory,
} from '@aragon/osx-ethers';
import {defaultAbiCoder} from '@ethersproject/abi';
import {ethers} from 'hardhat';
import {DeployFunction} from 'hardhat-deploy/types';
import {HardhatRuntimeEnvironment} from 'hardhat/types';
import path from 'path';
Expand Down Expand Up @@ -75,16 +73,8 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
`PluginRepo '${pluginEnsDomain(hre)}' deployed at '${pluginRepo.address}'.`
);

const ERC1967_IMPLEMENTATION_SLOT =
'0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc';
const implementationAddress = await ethers.provider
.getStorageAt(pluginRepo.address, ERC1967_IMPLEMENTATION_SLOT)
.then(encoded => defaultAbiCoder.decode(['address'], encoded)[0]);

console.log('implementationAddress', implementationAddress);

hre.aragonToVerifyContracts.push({
address: implementationAddress,
address: pluginRepo.address,
args: [],
});
};
Expand Down

0 comments on commit a255707

Please sign in to comment.