From ead31d983a139a92d89f368365b33ca3ca2e6399 Mon Sep 17 00:00:00 2001 From: Syed Ahkam Date: Tue, 14 Mar 2023 02:49:46 +0530 Subject: [PATCH] Fix typescript error --- src/checkAccess.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/checkAccess.ts b/src/checkAccess.ts index 47697e1..930d5ee 100644 --- a/src/checkAccess.ts +++ b/src/checkAccess.ts @@ -19,6 +19,6 @@ export async function checkAccess( const nfts = mpl.nfts(); const ownerNfts = await nfts.findAllByOwner({ owner: owner.publicKey }); - // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call + // @ts-expect-error: mintAddress will always exist on Metadata object return ownerNfts.some((nft) => nft.mintAddress.equals(keyAddress)); }