Ahh okā¦It seems like the metadata is already parsed in file pages/balances/nft.tsx
and passed as json.
There is no fixed type defined for metadata in sdk as well, So you can also add custom metadata types to fix this error.
Update this type in src/components/templates/balances/NFT/types.ts
file
export type TNFTBalance = {
tokenAddress: string;
chain: string | number;
ownerOf: string | undefined;
blockNumberMinted: string | undefined;
blockNumber: string | undefined;
tokenId: string | number;
contractType: EvmNftContractType;
tokenUri?: string | undefined;
tokenHash?: string | undefined;
metadata: { // you can add more types here, depending on the metadata standard.
name: string;
description: string;
image: string;
};
name?: string | undefined;
symbol?: string | undefined;
lastMetadataSync?: Date | undefined;
lastTokenUriSync?: Date | undefined;
amount?: number | undefined;
};