Skip to content

Commit

Permalink
fix: Wrong originId when accessing multiple tokenscripts for the same…
Browse files Browse the repository at this point in the history
… token

Ensure originId from cache isn't used to allow correct sharing of this
data across multiple tokenscripts.
  • Loading branch information
micwallace committed Nov 12, 2024
1 parent cc174e7 commit 896a0f1
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ export class DiscoveryAdapter implements ITokenDiscoveryAdapter {
}
}

// Ensure originId from cache isn't used to allow correct sharing of this data across multiple tokenscripts
cachedToken.originId = initToken.originId;

resultTokens.push(cachedToken);

} catch (e){
Expand Down

0 comments on commit 896a0f1

Please sign in to comment.