Skip to content

Commit

Permalink
chore(mx): mx changes
Browse files Browse the repository at this point in the history
  • Loading branch information
D4mph1r committed Sep 6, 2024
1 parent 971d3f8 commit cf44cd9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/handler/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,13 @@ export async function listenEvents(
ev.destinationChain,
);

const imgUri = (await fetchHttpOrIpfs(nftDetails.metadata, axios.create()))
.image;
let imgUri = "";
try {
imgUri = (await fetchHttpOrIpfs(nftDetails.metadata, axios.create()))
.image;
} catch (ex) {
imgUri = nftDetails.metadata;
}

const inft: TNftTransferDetailsObject = {
destinationChain: ev.destinationChain,
Expand Down

0 comments on commit cf44cd9

Please sign in to comment.