Skip to content

Commit 896a0f1

Browse files
committed
fix: Wrong originId when accessing multiple tokenscripts for the same token
Ensure originId from cache isn't used to allow correct sharing of this data across multiple tokenscripts.
1 parent cc174e7 commit 896a0f1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

javascript/tokenscript-viewer/src/integration/discoveryAdapter.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ export class DiscoveryAdapter implements ITokenDiscoveryAdapter {
6262
}
6363
}
6464

65+
// Ensure originId from cache isn't used to allow correct sharing of this data across multiple tokenscripts
66+
cachedToken.originId = initToken.originId;
67+
6568
resultTokens.push(cachedToken);
6669

6770
} catch (e){

0 commit comments

Comments
 (0)