Skip to content

Commit

Permalink
Merge pull request #121 from G7DAO/fix/deployment-script
Browse files Browse the repository at this point in the history
Fix: Update deployment payload contract name
  • Loading branch information
ogarciarevett authored May 2, 2024
2 parents 13d65e8 + cc34be9 commit e21e845
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tasks/deploy-proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,12 +304,13 @@ task('deploy-proxy', 'Deploys Smart contracts with proxy')
metadataURI: extension.metadata.metadataURI,
implementation: deployedExtensionContract.contractAddress,
};
const abi = deployedExtensionContract.contractAbi;

const contractInstance = await hre.ethers.getContractAt(
extension.contractFileName,
deployedExtensionContract.contractAddress
);

let functions: ExtensionFunction[] = [];

for (const func of extension.functionsToInclude) {
Expand All @@ -323,6 +324,7 @@ task('deploy-proxy', 'Deploys Smart contracts with proxy')
const extensionDeployed = {
metadata,
functions,
abi,
};

deployedExtensions.push(extensionDeployed);
Expand Down Expand Up @@ -368,7 +370,8 @@ task('deploy-proxy', 'Deploys Smart contracts with proxy')
);

const proxyDeployment = await deployOne(hre, proxyContract, tenant, implementationContract);


proxyDeployment.name = `${proxyDeployment.name}${deployedImplementation.name}`;
proxyDeployment.upgradable = true;
proxyDeployment.proxyType = PROXY_CONTRACT_TYPE.EIP1967;
proxyDeployment.proxy = {
Expand All @@ -382,7 +385,7 @@ task('deploy-proxy', 'Deploys Smart contracts with proxy')
};
proxyDeployment.extensions = deployedExtensions.map((extension) => {
return {
abi: extension.metadata,
abi: extension.abi,
address: extension.metadata.implementation,
functions: extension.functions,
};
Expand Down

0 comments on commit e21e845

Please sign in to comment.