From 51f41fc13a460027fc859ea68e17e12435b84c43 Mon Sep 17 00:00:00 2001 From: Michael Wallace Date: Wed, 27 Nov 2024 19:06:01 +1100 Subject: [PATCH] fix: originId selection --- .../viewers/util/getTokenScriptWithSingleTokenContext.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/tokenscript-viewer/src/components/viewers/util/getTokenScriptWithSingleTokenContext.ts b/javascript/tokenscript-viewer/src/components/viewers/util/getTokenScriptWithSingleTokenContext.ts index 43d2d27..ca53ba5 100644 --- a/javascript/tokenscript-viewer/src/components/viewers/util/getTokenScriptWithSingleTokenContext.ts +++ b/javascript/tokenscript-viewer/src/components/viewers/util/getTokenScriptWithSingleTokenContext.ts @@ -31,7 +31,7 @@ export async function getTokenScriptWithSingleTokenContext( // If token ID is specified we only show that token if (tokenId != null){ // Try to load single token - const singleTokenData = await getSingleTokenMetadata(chain, contract, tokenId, tokenScript.getEngine()); + const singleTokenData = await getSingleTokenMetadata(selectedOrigin.chainId, selectedOrigin.contractAddress, tokenId, tokenScript.getEngine()); selectedOrigin = {...singleTokenData.collection, ...selectedOrigin} if (singleTokenData.detail)