From 38557f5be7fd651ff3b406a888cb0d16df3cb400 Mon Sep 17 00:00:00 2001 From: Oleh Hryb Date: Thu, 30 Nov 2023 15:14:46 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20removed=20unneded=20URL?= =?UTF-8?q?=20to=20single=20token?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/tokenscript/extra-features/token-messaging.mdx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pages/tokenscript/extra-features/token-messaging.mdx b/pages/tokenscript/extra-features/token-messaging.mdx index 3b96c31..63e9b3e 100644 --- a/pages/tokenscript/extra-features/token-messaging.mdx +++ b/pages/tokenscript/extra-features/token-messaging.mdx @@ -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)} ```