@tmawallet/sdk
Version:
TMA Wallet SDK
12 lines • 408 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.hexToUint8Array = void 0;
const hexToUint8Array = (hex) => {
const bytes = hex.match(/../g);
if (!bytes) {
throw new Error('Invalid hex string');
}
return new Uint8Array(bytes.map(byte => parseInt(byte, 16)));
};
exports.hexToUint8Array = hexToUint8Array;
//# sourceMappingURL=hexToUint8Array.js.map