Skip to content

Commit

Permalink
Merge pull request #169 from NetSepio/rushikesh-nft
Browse files Browse the repository at this point in the history
fix : solana nft fetching
  • Loading branch information
Rushikeshnimkar authored Oct 17, 2024
2 parents d100f63 + 3c09d0e commit 6ed392b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/UserNFTs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import axios from 'axios';
import Cookies from 'js-cookie';

const ALLOWED_COLLECTIONS = {
sol: ['SMB Gen2', 'sharx by sharky.fi', 'Superteam Member NFT', 'Deanslist', 'SMB Gen3', "Erebrus Community NFT #001"],
sol: ['SMB', 'sharx', '$TEAM', 'DEAN', "Erebrus Community NFT #001"],
apt: ["Undying City Equipment Collection"]
};

Expand Down Expand Up @@ -40,7 +40,7 @@ const fetchUserNFTs = async (chainSymbol: string) => {
console.log('All user NFTs:', userNFTs);

const filteredNFTs = userNFTs.filter(nft =>
ALLOWED_COLLECTIONS.sol.includes(nft.name)
ALLOWED_COLLECTIONS.sol.includes(nft.symbol)
).map(nft => ({
amount: 1,
current_token_data: {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"@martianwallet/aptos-wallet-adapter": "^0.0.5",
"@metaplex-foundation/js": "^0.20.1",
"@metaplex-foundation/mpl-token-metadata": "^3.2.1",
"@metaplex-foundation/umi": "^0.9.2",
"@metaplex-foundation/umi-bundle-defaults": "^0.9.2",
"@metaplex-foundation/umi-signer-wallet-adapters": "^0.9.2",
"@metaplex-foundation/umi-uploader-bundlr": "^0.9.2",
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6ed392b

Please sign in to comment.