Fix RPC endpoint for Classic
This commit is contained in:
parent
ee68925447
commit
aeae60627f
|
@ -37,7 +37,7 @@ function getRPCEndpoints(network) {
|
||||||
case RSK_TESTNET_CODE:
|
case RSK_TESTNET_CODE:
|
||||||
return ['https://public-node.testnet.rsk.co']
|
return ['https://public-node.testnet.rsk.co']
|
||||||
case CLASSIC_CODE:
|
case CLASSIC_CODE:
|
||||||
return ['https://www.ethercluster.com/etc/']
|
return ['https://www.ethercluster.com/etc']
|
||||||
default:
|
default:
|
||||||
return []
|
return []
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "eth-net-props",
|
"name": "eth-net-props",
|
||||||
"version": "1.0.25",
|
"version": "1.0.26",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "eth-net-props",
|
"name": "eth-net-props",
|
||||||
"version": "1.0.25",
|
"version": "1.0.26",
|
||||||
"description": "Get properties of EMV-based network",
|
"description": "Get properties of EMV-based network",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"directories": {
|
"directories": {
|
||||||
|
|
|
@ -242,7 +242,7 @@ describe('eth-net-props', () => {
|
||||||
const ETCRPCEndpoints = RPCEndpoints.getRPCEndpoints(61)
|
const ETCRPCEndpoints = RPCEndpoints.getRPCEndpoints(61)
|
||||||
assert.equal(ETCRPCEndpoints.length, 1)
|
assert.equal(ETCRPCEndpoints.length, 1)
|
||||||
if (ETCRPCEndpoints.length > 0) {
|
if (ETCRPCEndpoints.length > 0) {
|
||||||
assert.equal(ETCRPCEndpoints[0], 'https://www.ethercluster.com/etc/')
|
assert.equal(ETCRPCEndpoints[0], 'https://www.ethercluster.com/etc')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue