PHP WebShell

Текущая директория: /usr/lib/node_modules/bitgo/node_modules/viem/_cjs/utils/ens

Просмотр файла: encodedLabelToLabelhash.js

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.encodedLabelToLabelhash = encodedLabelToLabelhash;
const isHex_js_1 = require("../data/isHex.js");
function encodedLabelToLabelhash(label) {
    if (label.length !== 66)
        return null;
    if (label.indexOf('[') !== 0)
        return null;
    if (label.indexOf(']') !== 65)
        return null;
    const hash = `0x${label.slice(1, 65)}`;
    if (!(0, isHex_js_1.isHex)(hash))
        return null;
    return hash;
}
//# sourceMappingURL=encodedLabelToLabelhash.js.map

Выполнить команду


Для локальной разработки. Не используйте в интернете!