Skip to content

Commit

Permalink
fix: 🐛 messaging manual updated
Browse files Browse the repository at this point in the history
  • Loading branch information
oleggrib committed Nov 30, 2023
1 parent acdb358 commit 5b89ade
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pages/tokenscript/extra-features/token-messaging.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@

5. Run command ```npm i``` to install all dependencies

6. Run “tokenscript build” to build TSML file or ```tokenscript emulate``` to preview your tokenscript in action
6. Run command ```npm run build``` to build TSML file **out/tokenscript.tsml**

7. copy file “out/tokenscript.tsml” to some HTTPS hosting and save file URL
7. Run ```tokenscript emulate``` to preview your tokenscript in action

8. If TokenScript works as expected the copy file “out/tokenscript.tsml” to some HTTPS hosting and save file URL

Now you can use this URL in tokenscript viewer. Dont forget to replace variables with values **chainId** , **contractAddress** , **tokenId** and replace **tokenScriptFileURL** with its value, its URL, where TSML file located

Expand All @@ -27,5 +29,7 @@ const singleTokenViewTokeScriptURL = `https://viewer-staging.tokenscript.org/?vi
const allTokensViewTokeScriptURL = `https://viewer-staging.tokenscript.org/?chain=${chainId}&contract=${contractAddress}&tokenscriptUrl=${encodeURIComponent(tokenScriptFileURL)}`
```



Thats it, ready for messaging.

0 comments on commit 5b89ade

Please sign in to comment.