Skip to content

Commit

Permalink
fix: update setNftMetadata script
Browse files Browse the repository at this point in the history
  • Loading branch information
hyeonwoong committed Nov 2, 2023
1 parent 6c6178f commit b60bce5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tutorials/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"main": "index.js",
"license": "MIT",
"dependencies": {
"@ainft-team/ainft-js": "1.0.0-beta.8"
"@ainft-team/ainft-js": "1.0.0-beta.9"
}
}
2 changes: 1 addition & 1 deletion tutorials/setMetadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const metadata = {

const main = async () => {
const ainftObject = await ainftJs.nft.get(ainftObjectId);
const ainft = await ainftObject.get(tokenId);
const ainft = await ainftObject.getToken(tokenId);
const result = await ainft.setMetadata(metadata);
console.log(result);
}
Expand Down

0 comments on commit b60bce5

Please sign in to comment.