Skip to content

Commit

Permalink
Import ribbit
Browse files Browse the repository at this point in the history
  • Loading branch information
corydickson committed Apr 9, 2024
1 parent cdd4fc0 commit 7cb23d1
Show file tree
Hide file tree
Showing 4 changed files with 20,250 additions and 841 deletions.
4 changes: 2 additions & 2 deletions lib/deploy.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { BaseConfig } from "./config";
import { uploadJSONToIpfs } from '@archetype-org/ribbit';
const { read_bos_config } = require("./config");
const fs = require("fs");
const path = require("path");
const { execSync } = require("child_process");
const { uploadUsingHelia } = require("./ipfs");

const distFolder = process.env.DIST_FOLDER || "build";

Expand Down Expand Up @@ -62,7 +62,7 @@ export async function deploy_with_metadata(appFolder, typeFile) {
}

const formattedContent = [content];
const ipfsHash = await uploadUsingHelia(formattedContent);
const ipfsHash = await uploadJSONToIpfs(formattedContent);
try {
console.log(`Uploaded data for ${appFolder} with ipfs hash: ${ipfsHash}`);
} catch (error) {
Expand Down
Loading

0 comments on commit 7cb23d1

Please sign in to comment.