From d05ee4de9be12dc63d61162389d12eb8831649e7 Mon Sep 17 00:00:00 2001 From: CJ42 Date: Fri, 12 Jan 2024 09:59:15 +0000 Subject: [PATCH] add extra note about `tokenId` being `bytes32` --- docs/learn/dapp-developer/set-nft-metadata.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/learn/dapp-developer/set-nft-metadata.md b/docs/learn/dapp-developer/set-nft-metadata.md index 798d94719c..ebcaffc6cc 100644 --- a/docs/learn/dapp-developer/set-nft-metadata.md +++ b/docs/learn/dapp-developer/set-nft-metadata.md @@ -114,6 +114,8 @@ Here we will use the following parameters as examples: - `dataKey`: [`LSP4Metadata`](../../standards/tokens/LSP4-Digital-Asset-Metadata.md#lsp4metadata) - `metadataValue`: some placeholder value as a [`VerifiableURI`](https://github.com/lukso-network/LIPs/blob/main/LSPs/LSP-2-ERC725YJSONSchema.md#verifiableuri). +> Note that the `tokenId` is a `bytes32` value (hex) + :::info You can use the `encodeData` function from the [_erc725.js_](../../tools/erc725js/classes/ERC725.md#encodedata) library to encode a `VerifiableURI` easily.