Skip to content

Commit

Permalink
Merge pull request #563 from MoralisWeb3/fix-amount-in-nft
Browse files Browse the repository at this point in the history
fix: add amount in getNfts endpoint
  • Loading branch information
ErnoW authored Aug 9, 2022
2 parents 1557923 + e818e2d commit 49e1ce4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/red-crews-sniff.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@moralisweb3/evm-api': patch
---

Add `amount` property for Moralis.account.getNFTs
1 change: 1 addition & 0 deletions packages/evmApi/src/resolvers/account/getNFTs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export const getNFTs = createPaginatedEndpointFactory((core) =>
name: nft.name,
symbol: nft.symbol,
}),
amount: nft.amount ? parseInt(nft.amount, 10) : undefined,
blockNumberMinted: nft.block_number_minted,
blockNumber: nft.block_number,
ownerOf: EvmAddress.create(nft.owner_of, core),
Expand Down

0 comments on commit 49e1ce4

Please sign in to comment.