Does anyone know how to properly use the Moralis Pinata plugin?
I check this: https://moralis.io/plugins/pinata/
Within my async function I do this to upload to Moralis IPFS which works fine:
const file = new Moralis.File(logo.name, logo);
await file.saveIPFS();
profile.set('logo', file.ipfs());
When I install the Pinata plugin and add the API keys I changed the above code to this:
const pinataLogo = await Moralis.Plugins.pinata.pinFile(logo); // this is the File but also tried logo.name here
profile.set('logo', pinataLogo);
This gives the following error:
400 - POST: https://******.usemoralis.com:2053/server/functions/pinata_pinFile