Skip to content

Commit

Permalink
fix: fix pinata call
Browse files Browse the repository at this point in the history
  • Loading branch information
wa0x6e committed Aug 9, 2023
1 parent 5481b52 commit a89fe41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/pinata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export async function set(data: Buffer | object) {
const stream = Readable.from(data);
// @ts-ignore
stream.path = randomUUID();
result = await client.pinFileToIPFS(stream);
result = await client.pinFileToIPFS(stream, { pinataMetadata: { name: randomUUID() } });
} else {
result = await client.pinJSONToIPFS(data);
}
Expand Down

0 comments on commit a89fe41

Please sign in to comment.