Merge pull request #6 from poanetwork/dai-ticker-update
(Fix) Update xDAI ticker
This commit is contained in:
commit
ea56c66ad9
|
@ -27,7 +27,7 @@ function getNetworkCoinName(network) {
|
|||
case 99:
|
||||
return 'POA'
|
||||
case 100:
|
||||
return 'XDAI'
|
||||
return 'xDAI'
|
||||
default:
|
||||
return 'ETH'
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "eth-net-props",
|
||||
"version": "1.0.6",
|
||||
"version": "1.0.7",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue