UNPKG

@trezor/connect

Version:

High-level javascript interface for Trezor hardware wallet.

15 lines (14 loc) 448 B
"use strict"; 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