Merge pull request #6 from poanetwork/dai-ticker-update

(Fix) Update xDAI ticker
This commit is contained in:
Victor Baranov 2018-10-12 20:32:34 +03:00 committed by GitHub
commit ea56c66ad9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -27,7 +27,7 @@ function getNetworkCoinName(network) {
case 99:
return 'POA'
case 100:
return 'XDAI'
return 'xDAI'
default:
return 'ETH'
}

2
package-lock.json generated
View File

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

View File

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

View File

@ -113,7 +113,7 @@ describe('eth-net-props', () => {
assert.equal(netProps.getNetworkCoinName(99), 'POA')
})
it('should return correct coin name for DAI chain', () => {
assert.equal(netProps.getNetworkCoinName(100), 'XDAI')
assert.equal(netProps.getNetworkCoinName(100), 'xDAI')
})
it('should return correct coin name for Mainnet', () => {
assert.equal(netProps.getNetworkCoinName(1), 'ETH')