graph-node icon indicating copy to clipboard operation
graph-node copied to clipboard

File data sources: support files in IPFS directories

Open azf20 opened this issue 3 years ago • 0 comments

IPFS file data sources based on files in directories (e.g. https://ipfs.io/ipfs/QmaXzZhcYnsisuue5WRdQDH6FDvqkLQX1NckLqBYeYYEfm/1.json) fail with the following error:

        "fatalError": {
          "message": "Failed to parse multihash",
        }

Example mapping:

token.tokenURI = "/" + event.params.tokenId.toString() + ".json";
token.ipfsURI = ipfshash + token.tokenURI;
TokenMetadataTemplate.create(token.ipfsURI);

File data sources should be able to reference these kind of files as well as a CID

azf20 avatar Sep 17 '22 11:09 azf20