Skip to content

Commit 0b2717b

Browse files
authored
Merge pull request #406 from sven-hash/patch-12
fix: nft metadata function name
2 parents 39eaff8 + 6bf09ba commit 0b2717b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/dapps/tutorials/first-nft.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,8 @@ const collectionMetadata = await web3.getCurrentNodeProvider().fetchNFTCollectio
248248
console.log("NFT Collection URI, totalSupply", collectionMetadata.collectionUri, collectionMetadata.totalSupply)
249249

250250
// NFT Metadata
251-
const nftMetadata = await web3.getCurrentNodeProvider().fetchNFTMetadata(nft.contractId)
252-
console.log("NFT Token URI, collection address", nftMetadata.tokenUri, nftMetadata.collectionAddress)
251+
const nftMetadata = await web3.getCurrentNodeProvider().fetchNFTMetaData(address)
252+
console.log('NFT Token URI, collection address', nftMetadata.tokenUri, nftMetadata.collectionId)
253253
```
254254

255255
These interfaces also enable SDK to guess their types, so that dApps

0 commit comments

Comments
 (0)