PinataCloud / Pinata-SDK

Official SDK for the Pinata IPFS service
MIT License
273 stars 67 forks source link

[ERROR] Error: filename was not provide, make sure to provide options.pinataMetadata.name #140

Closed yakovsamsonov closed 5 months ago

yakovsamsonov commented 1 year ago

version: "2.1.0"

I'm calling pinFileToIPFS in src/pinning/pinFileToIPFS.ts without options variable provided. This is valid function call based on function signature and README.md.

I've got an Error: filename was not provide, make sure to provide options.pinataMetadata.name.

Looks like the issue with 89-99 lines after refactoring.

rommel-pinata commented 1 year ago

Hello, @yakovsamsonov I see the error in the optional parameter. So it seems it's rather an issue on the documentation or has a different interface.

stevedylandev commented 5 months ago

We will be rewriting the SDK to make this a non-issue