diff --git a/packages/contracts/deploy/helpers.ts b/packages/contracts/deploy/helpers.ts index 76e453a6..35f60b10 100644 --- a/packages/contracts/deploy/helpers.ts +++ b/packages/contracts/deploy/helpers.ts @@ -60,28 +60,6 @@ export const DAO_PERMISSIONS = [ 'REGISTER_STANDARD_CALLBACK_PERMISSION', ]; -export async function uploadToIPFS( - metadata: string, - networkName: string -): Promise { - const client = IPFS.create({ - url: 'https://prod.ipfs.aragon.network/api/v0', - headers: { - 'X-API-KEY': 'b477RhECf8s8sdM7XrkLBs2wHc4kCMwpbcFC55Kt', - }, - }); - - if (networkName === 'hardhat' || networkName === 'localhost') { - // return a dummy path - return 'QmNnobxuyCjtYgsStCPhXKEiQR5cjsc3GtG9ZMTKFTTEFJ'; - } - - const res = await client.add(metadata); - await client.pin.add(res.cid); - console.log(`Uploaded to IPFS with cid ${res.cid.toString()}`); - return res.cid.toString(); -} - export async function getContractAddress( contractName: string, hre: HardhatRuntimeEnvironment