Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: build and release metadata mixups #507

Merged
merged 3 commits into from
Dec 13, 2023
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions packages/contracts/deploy/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,8 @@ export async function createVersion(
const tx = await pluginRepo.createVersion(
releaseNumber,
pluginSetupContract,
releaseMetadata,
buildMetadata
buildMetadata,
releaseMetadata
);

console.log(`Creating build for release ${releaseNumber} with tx ${tx.hash}`);
Expand Down Expand Up @@ -321,14 +321,16 @@ export async function populatePluginRepo(

const placeholderSetup = await getContractAddress('PlaceholderSetup', hre);

const emptyMetadata = ethers.utils.hexlify(ethers.utils.toUtf8Bytes(''));
const emptyJsonObject = ethers.utils.hexlify(
ethers.utils.toUtf8Bytes('{}')
heueristik marked this conversation as resolved.
Show resolved Hide resolved
);

for (let i = 1; i < latestBuildNumber; i++) {
await createVersion(
hre.aragonPluginRepos[pluginRepoName],
placeholderSetup,
releaseNumber,
emptyMetadata,
emptyJsonObject,
ethers.utils.hexlify(
ethers.utils.toUtf8Bytes(`ipfs://${hre.placeholderBuildCIDPath}`)
)
Expand Down
Loading