Skip to content

Commit

Permalink
Fix typescript error
Browse files Browse the repository at this point in the history
  • Loading branch information
SyedAhkam committed Mar 13, 2023
1 parent 5cb3dba commit ead31d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/checkAccess.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

0 comments on commit ead31d9

Please sign in to comment.