Merge pull request #5 from poanetwork/dai-chain-update

(Fix) Update name of the DAI chain
This commit is contained in:
Victor Baranov 2018-10-12 19:55:31 +03:00 committed by GitHub
commit c78a5c9b41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -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'
}

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "eth-net-props",
"version": "1.0.5",
"version": "1.0.6",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -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": {

View File

@ -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')