@trezor/connect
Version:
High-level javascript interface for Trezor hardware wallet.
12 lines • 459 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getNetworkLabel = void 0;
const getNetworkLabel = (label, network) => {
if (network) {
const name = network.name.toLowerCase().indexOf('testnet') >= 0 ? 'Testnet' : network.name;
return label.replace('#NETWORK', name);
}
return label.replace('#NETWORK', '');
};
exports.getNetworkLabel = getNetworkLabel;
//# sourceMappingURL=ethereumUtils.js.map