Support of string input for getNetworkDisplayName() method

This commit is contained in:
Victor Baranov 2018-08-21 16:59:12 +03:00
parent b529513b1a
commit 2d108c3457
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,6 @@
function getNetworkDisplayName(network) {
switch (network) {
const netID = parseInt(network)
switch (netID) {
case 1:
return 'Main Ethereum Network'
case 3:

View File

@ -1,6 +1,6 @@
{
"name": "eth-net-props",
"version": "1.0.1",
"version": "1.0.2",
"description": "Get properties of EMV-based network",
"main": "index.js",
"directories": {