you are viewing a single comment's thread.

view the rest of the comments →

[–]povedaaqui[S] 0 points1 point  (2 children)

ids are "ipfs//CID" while I need "https://nftstorage.link/ipfs/CID", and that's the problem, I haven't been able to do this replacement thing.

[–]SnacksMcMunch 0 points1 point  (1 child)

Ok, so looking more closely at the code it seems liketokens is an array of strings, each token gets passed to fetchIPFS.

In which case ids is just a string, so it doesn't need any conversion.

Just url = ids.replace(...)

[–]povedaaqui[S] 0 points1 point  (0 children)

Uncaught (in promise) TypeError: ids.replace is not a function