Update Infura IPFS Provider API with Pinata IPFS Provider API for I… #17
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
…PFS integration
Description
This pull request updates the IPFS integration in the NFT Marketplace project by switching from the Infura API to the Pinata API. Infura recently deprecated their public gateway, requiring users to create an account and provide card details to access the free API. However, this additional step of providing card details is often the last thing students and developers would prefer to do. To simplify the process and make it more convenient, I have replaced the Infura API calls with equivalent calls to the Pinata API, which does not require card details. This change ensures smooth functionality for IPFS-related operations in the application while addressing the concerns of students and developers.
Changes Made
ipfs.js
file to replace all Infura API endpoints with corresponding Pinata API endpoints.config.js
file to use the Pinata API key and secret for authentication.Testing Done
Related Issues
5 - IPFS image upload error
9 - ipfs image upload error: HTTPError: project id required
Closes #5 #9
Checklist