Skip to content

Commit

Permalink
fix: πŸ› removed unneded URL to single token
Browse files Browse the repository at this point in the history
  • Loading branch information
oleggrib committed Nov 30, 2023
1 parent ffe3b20 commit 38557f5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pages/tokenscript/extra-features/token-messaging.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@

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

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

This is template of TokenScript viewer for your TokenScript file:

```
const singleTokenViewTokeScriptURL = `https://viewer-staging.tokenscript.org/?viewType=sts-token&chain=${chainId}&contract=${contractAddress}&tokenId=${tokenId}&tokenscriptUrl=${encodeURIComponent(tokenScriptFileURL)}`
const allTokensViewTokeScriptURL = `https://viewer-staging.tokenscript.org/?chain=${chainId}&contract=${contractAddress}&tokenscriptUrl=${encodeURIComponent(tokenScriptFileURL)}`
https://viewer-staging.tokenscript.org/?chain=${chainId}&contract=${contractAddress}&tokenscriptUrl=${encodeURIComponent(tokenScriptFileURL)}
```


Expand Down

0 comments on commit 38557f5

Please sign in to comment.