@yoroi/api
Version:
The API package of Yoroi SDK
16 lines (15 loc) • 533 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.asSubject = asSubject;
/**
* 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.
*/
function asSubject(tokenId) {
return tokenId.replace('.', '');
}
//# sourceMappingURL=asSubject.js.map