diff --git a/src/components/projects/hooks.js b/src/components/projects/hooks.js index ddedabd..1df71a5 100644 --- a/src/components/projects/hooks.js +++ b/src/components/projects/hooks.js @@ -26,6 +26,7 @@ async function tryIpfsGets(CID, setState, index=0){ const ipfsFn = callOrderFns[index] ipfsFn(CID) .then((files) => { + console.log('IPFS get sucessful on attempt: ', index+1) setState(files) }) .catch(async (err) => { diff --git a/src/utils/ipfs.js b/src/utils/ipfs.js index 2367106..70563b0 100644 --- a/src/utils/ipfs.js +++ b/src/utils/ipfs.js @@ -90,7 +90,7 @@ export const uploadToIpfs = async files => { } export const uploadToIpfsGateway = async files => { - const res = await ipfsHttp.add(files) + const res = await ipfsHttpTheGraph.add(files) return `ipfs/${res.slice(-1)[0].hash}` }