UNPKG

@yoroi/api

Version:
12 lines (11 loc) 444 B
"use strict"; /** * 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