Skip to content

Commit

Permalink
ci: remove not used function
Browse files Browse the repository at this point in the history
  • Loading branch information
clauBv23 committed Dec 2, 2024
1 parent 217f71c commit 02a7dbb
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions packages/contracts/deploy/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,28 +60,6 @@ export const DAO_PERMISSIONS = [
'REGISTER_STANDARD_CALLBACK_PERMISSION',
];

export async function uploadToIPFS(
metadata: string,
networkName: string
): Promise<string> {
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
Expand Down

0 comments on commit 02a7dbb

Please sign in to comment.