@yoroi/api
Version:
The API package of Yoroi SDK
12 lines (11 loc) • 444 B
JavaScript
;
/**
* Concatenates the policyId and assetName from a given token ID by removing the separating dot.
*
* @param {Balance.TokenInfo['id']} tokenId - The token ID string containing policyId and assetName separated by a dot.
* @returns {string} A new string formed by removing the separating dot from the tokenId.
*/
export function asSubject(tokenId) {
return tokenId.replace('.', '');
}
//# sourceMappingURL=asSubject.js.map