Skip to content

Commit

Permalink
Minor amendment on the example script
Browse files Browse the repository at this point in the history
  • Loading branch information
brickpop committed Aug 26, 2024
1 parent fa3ec58 commit b02115b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
9 changes: 2 additions & 7 deletions scripts/deploy/5-dao.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ import {
import { type Address, type Hex, type Log, decodeEventLog, toHex } from "viem";
import { deploymentPublicClient as publicClient, deploymentWalletClient as walletClient } from "../lib/util/client";
import { deploymentAccount as account } from "../lib/util/account";
import { uploadToIPFS } from "@/utils/ipfs";
import { deploymentIpfsClient as ipfsClient } from "../lib/util/ipfs";
import { uploadToPinata } from "@/utils/ipfs";
import { ABI as DaoFactoryABI } from "../lib/artifacts/dao-factory";
import { ABI as DaoRegistryABI } from "../lib/artifacts/dao-registry";
import { ABI as PluginSetupProcessorABI } from "../lib/artifacts/plugin-setup-processor";
Expand Down Expand Up @@ -73,11 +72,7 @@ function pinDaoMetadata(): Promise<Hex> {
// },
// ],
};
const blob = new Blob([JSON.stringify(daoMetadata)], {
type: "application/json",
});

return uploadToIPFS(ipfsClient, blob)
return uploadToPinata(JSON.stringify(daoMetadata))
.then((res) => toHex(res))
.catch((err) => {
console.warn("Warning: Could not pin the DAO metadata on IPFS");
Expand Down
10 changes: 0 additions & 10 deletions scripts/lib/util/ipfs.ts

This file was deleted.

0 comments on commit b02115b

Please sign in to comment.