opstack-kit-chains
Version:
Support your OP-Stack network with 'opstack-kit'
11 lines • 352 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.size = void 0;
const isHex_js_1 = require("./isHex.js");
function size(value) {
if ((0, isHex_js_1.isHex)(value, { strict: false }))
return Math.ceil((value.length - 2) / 2);
return value.length;
}
exports.size = size;
//# sourceMappingURL=size.js.map
;