From b8ac6c1889d93e10967ddac850f9dd8c5b1c5c95 Mon Sep 17 00:00:00 2001 From: Will Roeder Date: Wed, 3 Nov 2021 12:52:04 -0700 Subject: [PATCH] Added a supply check to confirm a SPL Token is actually a Metaplex NFT (#21145) Co-authored-by: Will Roeder --- explorer/src/components/account/TokenAccountSection.tsx | 2 +- explorer/src/pages/AccountDetailsPage.tsx | 2 +- explorer/src/providers/accounts/utils/isMetaplexNFT.ts | 9 +++++++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/explorer/src/components/account/TokenAccountSection.tsx b/explorer/src/components/account/TokenAccountSection.tsx index c10aecb96..dc6dcdaeb 100644 --- a/explorer/src/components/account/TokenAccountSection.tsx +++ b/explorer/src/components/account/TokenAccountSection.tsx @@ -54,7 +54,7 @@ export function TokenAccountSection({ case "mint": { const info = create(tokenAccount.info, MintAccountInfo); - if (isMetaplexNFT(account.details?.data, info.decimals)) { + if (isMetaplexNFT(account.details?.data, info)) { return (