Skip to content

Commit 436797c

Browse files
committed
Commit Release Artifacts [skip ci]
1 parent dc409d0 commit 436797c

File tree

7 files changed

+13
-0
lines changed

7 files changed

+13
-0
lines changed
88 Bytes
Binary file not shown.
Binary file not shown.
317 Bytes
Binary file not shown.
16.6 KB
Binary file not shown.
0 Bytes
Binary file not shown.
9.07 KB
Binary file not shown.

snippets/feature_snippets_sdk.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -933,6 +933,19 @@
933933
}
934934
}
935935
],
936+
"ERC1155UpdateMetadata": [
937+
{
938+
"name": "updateMetadata",
939+
"summary": "Update the metadata of an NFT\n\n",
940+
"remarks": "\n\nUpdate the metadata of an NFT in the connected wallet\n\n",
941+
"examples": {
942+
"javascript": "// The token ID of the NFT you want to update\nconst tokenId = 0;\n// The updated metadata of the NFT\nconst metadata = {\n name: \"Updated NFT\",\n description: \"This is an updated NFT\",\n image: fs.readFileSync(\"path/to/image.png\"), // This can be an image url or file\n}\n\nconst result = await contract.erc1155.updateMetadata(tokenId, metadata);"
943+
},
944+
"reference": {
945+
"javascript": "https://docs.thirdweb.com/typescript/sdk.bignumberish"
946+
}
947+
}
948+
],
936949
"ERC1155Enumerable": [
937950
{
938951
"name": "getAll",

0 commit comments

Comments
 (0)