Skip to content

Commit

Permalink
fix: publish an empty JSON object to silence the EmptyReleaseMetadata…
Browse files Browse the repository at this point in the history
… error
  • Loading branch information
heueristik committed Dec 1, 2023
1 parent ddfc7d5 commit 94617aa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/contracts/deploy/helpers.ts
Original file line number Diff line number Diff line change
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('{}')
);

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

0 comments on commit 94617aa

Please sign in to comment.