Skip to content

Commit

Permalink
Fix: Add extension abis to deployment payload
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Lima committed May 2, 2024
1 parent c3bc5ed commit cc34be9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 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 @@ -383,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 cc34be9

Please sign in to comment.