update name of the chain
This commit is contained in:
parent
ad186b7604
commit
83e63900e7
|
@ -14,7 +14,7 @@ function getNetworkDisplayName(network) {
|
|||
case 99:
|
||||
return 'POA Network'
|
||||
case 100:
|
||||
return 'Dai Chain'
|
||||
return 'xDai Chain'
|
||||
default:
|
||||
return 'Unknown Private Network'
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "eth-net-props",
|
||||
"version": "1.0.5",
|
||||
"version": "1.0.6",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "eth-net-props",
|
||||
"version": "1.0.5",
|
||||
"version": "1.0.6",
|
||||
"description": "Get properties of EMV-based network",
|
||||
"main": "index.js",
|
||||
"directories": {
|
||||
|
|
|
@ -91,7 +91,7 @@ describe('eth-net-props', () => {
|
|||
assert.equal(netProps.getNetworkDisplayName(99), 'POA Network')
|
||||
})
|
||||
it('should return correct display name for DAI chain', () => {
|
||||
assert.equal(netProps.getNetworkDisplayName(100), 'Dai Chain')
|
||||
assert.equal(netProps.getNetworkDisplayName(100), 'xDai Chain')
|
||||
})
|
||||
it('should return correct display name for Mainnet', () => {
|
||||
assert.equal(netProps.getNetworkDisplayName(1), 'Main Ethereum Network')
|
||||
|
|
Loading…
Reference in New Issue