Skip to content

Commit

Permalink
chore(tezos) fix nft parser
Browse files Browse the repository at this point in the history
  • Loading branch information
D4mph1r committed Aug 23, 2024
1 parent 6572236 commit 6fec755
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/factory/tezos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,17 @@ const getMetadata = async (nft: any, account = "", whitelisted = true) => {
let res;

try {
res = await axios(proxy + setupURI(nft.uri));
res = await axios(proxy + setupURI(nft.uri), { timeout: 10000 });
}
catch (ex) {
res = await axios(proxy + setupURI(nft.uri, true));
res = await axios(proxy + setupURI(nft.uri, true), { timeout: 10000 });
}

const { data } = res;

console.log("tezos data",data);


const parsed: NFT = {
native: nft.native,
chainId: nft.native.chainId,
Expand Down

0 comments on commit 6fec755

Please sign in to comment.