-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add IPFS gateway to remote image #3297
Conversation
2971b33
to
9b0f73c
Compare
thank you for the proposed fix! Looking forward to being accepted. |
Hello @kinggongzilla, can you provide an example of "ipfs:// token URI" please? This is currently fixing the resolution of the token icon URL. |
Hi @wachunei Oh okay, I thought this was a fix for using IPFS protocol URIs in the tokenURI or for the "image" key in the metadata of an NFT. This is the base URI we use in our smart contract:
It points to the JSON Metadata on IPFS which looks like this for example: The problem is that MetaMask mobile app does not display our NFTs at all, while they are correctly displayed on OpenSea: https://opensea.io/collection/beyond-mars |
@kinggongzilla I see your point, yes, I'm aiming to add support to that case as well, thank you the example. |
@wachunei thank you! |
I removed the Provider and just mocked the selector function the component uses
Happy to help on this if needed, we just tackled this issue on our marketplace with extensive test cases |
Hey @maximgeerinck, how can I reach out to you? Having some testnet NFTs with ipfs media types to test against would be very helpful. |
@wachunei you can mint different types here: https://app-testnet.refinable.com/
let me know if you need something else. For the ipfs i used following:
then we replace the hash by a public node, we did add fallback for multiple nodes as it can be that for very new NFTs, not all public nodes picked up the document yet
some don't even use ipfs, so we return when the url starts with Test case can look like:
^All the types above we've already encountered on public collections (also the invalid ones sadly) |
This PR will focus on ERC720 tokens with IPFS logo image url. NFTs support will be tracked in this issue: #3310 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Hey @cortisiko, here are some tokens with ipfs:// images to check:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This guy is 👍
Description
This PR uses current IPFS gateway selected in advanced settings to resolve IPFS scheme URIs
TODO:
Add support for NFTsChecklist
Issue
Resolves #3274 #2817 #2838