fudgebucket27 / Lexplorer

Loopring explorer alternative
14 stars 10 forks source link

Fix incorrect ipfs links for cyber crew NFTs #235

Closed modersohn closed 2 years ago

modersohn commented 2 years ago

If you look at the odd NFT 0x000000000000000000000000000000000000000000000000000000000000005f it seems this has been deposited from L1 (which incorrectly shows as MintNFT 26237-193), the metadata cannot be retrieved because the contract returns an incorrect uri:

image

Since we already modify IPFS links in MakeIPFSLink we could easily check for ipfs://ipfs/ as another prefix which we replace with the piñata URL - which would fix the NFT completely and metadata as well as image would show up properly on lexplorer.