Lite version: just uploads images without creating svgs

This commit is contained in:
2022-01-23 04:37:06 +03:00
parent 9702be4463
commit 28a36cd3a7
5 changed files with 9 additions and 2910 deletions

View File

@@ -11,12 +11,12 @@ const entity = process.argv[2];
await rarepress.init({ host: "https://rinkeby-beta.rarepress.org/v1" });
(await getImages(entity)).forEach(async (image, index) => {
const cid = await rarepress.fs.add(Buffer.from(image));
const cid = await rarepress.fs.add(image);
const token = await rarepress.token.create({
type: "ERC721",
metadata: {
name: `${index}`,
description: `${index}.svg`,
description: `Picture #${index}`,
image: `/ipfs/${cid}`,
},
});