Skip to content

Commit

Permalink
Merge branch 'feat/add-script-to-merge-all-proposal-actions' of githu…
Browse files Browse the repository at this point in the history
…b.com:aragon/core into feat/add-script-to-merge-all-proposal-actions
  • Loading branch information
brickpop committed Feb 12, 2025
2 parents 2fe5572 + cc0d964 commit 594d827
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,16 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {

let metadataCIDPath = '0x';

if (!process.env.PUB_PINATA_JWT) {
throw new Error('PUB_PINATA_JWT is not set');
}

if (!isLocal(hre.network)) {
// Upload the metadata to IPFS
metadataCIDPath = await uploadToPinata(
JSON.stringify(MANAGEMENT_DAO_METADATA, null, 2),
`management-dao-metadata`
MANAGEMENT_DAO_METADATA,
`management-dao-metadata`,
process.env.PUB_PINATA_JWT
);
}

Expand Down

0 comments on commit 594d827

Please sign in to comment.