Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion hooks/useCachedNFT.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ const getERC1155URI = async (nft, isFailOver = false) => {
const nftContract = new ethers.Contract(nft.token, contractABIERC1155, provider);

const uri = await nftContract.uri(nft.nftID);
return uri;

return uri.replace('{id}', nft.nftID);
} catch (error) {
console.error(error);
if (!isFailOver) {
Expand Down