Fix RPC endpoint for Classic

This commit is contained in:
Victor Baranov 2020-02-05 00:04:03 +03:00
parent ee68925447
commit aeae60627f
4 changed files with 4 additions and 4 deletions

View File

@ -37,7 +37,7 @@ function getRPCEndpoints(network) {
case RSK_TESTNET_CODE:
return ['https://public-node.testnet.rsk.co']
case CLASSIC_CODE:
return ['https://www.ethercluster.com/etc/']
return ['https://www.ethercluster.com/etc']
default:
return []
}

2
package-lock.json generated
View File

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

View File

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

View File

@ -242,7 +242,7 @@ describe('eth-net-props', () => {
const ETCRPCEndpoints = RPCEndpoints.getRPCEndpoints(61)
assert.equal(ETCRPCEndpoints.length, 1)
if (ETCRPCEndpoints.length > 0) {
assert.equal(ETCRPCEndpoints[0], 'https://www.ethercluster.com/etc/')
assert.equal(ETCRPCEndpoints[0], 'https://www.ethercluster.com/etc')
}
})
})