UNPKG

@fruitsjs/core

Version:

Principal package with functions and models for building Fruits Eco-Blockchain applications.

13 lines 641 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ensureReedSolomonAddress = void 0; const tokenizeReedSolomonAddress_1 = require("./tokenizeReedSolomonAddress"); const internal_1 = require("./internal"); const ensureReedSolomonAddress = (address) => { const tokens = (0, tokenizeReedSolomonAddress_1.tokenizeReedSolomonAddress)(address); if (!(0, internal_1.isDeeplyValidAddress)(tokens.rs)) { throw new Error(`Invalid Reed-Solomon Address: ${address}`); } }; exports.ensureReedSolomonAddress = ensureReedSolomonAddress; //# sourceMappingURL=ensureReedSolomonAddress.js.map