Skip to content

Commit

Permalink
try with other ipfs node
Browse files Browse the repository at this point in the history
  • Loading branch information
D4mph1r committed May 3, 2024
1 parent 71cf82c commit 76f2477
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/factory/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,15 @@ const tryBasic = async (url: string) => {

return response.data;
} catch (error) {
return undefined;
try {
let newUrl = setupURI(url).replace("ipfs.io", "xpnetwork.infura-ipfs.io");
console.log("newUrl", newUrl);
const response = await axios(newUrl);
return response.data;
}
catch (error) {
return undefined;
}
}
};

Expand Down

0 comments on commit 76f2477

Please sign in to comment.