Change RPC endpoint for Classic
This commit is contained in:
parent
4646ec6053
commit
20523f9805
|
@ -38,7 +38,7 @@ function getRPCEndpoints(network) {
|
|||
case RSK_TESTNET_CODE:
|
||||
return ['https://public-node.testnet.rsk.co']
|
||||
case CLASSIC_CODE:
|
||||
return ['https://ethereumclassic.network/']
|
||||
return ['https://etc-parity.0xinfra.com']
|
||||
default:
|
||||
return []
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "eth-net-props",
|
||||
"version": "1.0.16",
|
||||
"version": "1.0.17",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "eth-net-props",
|
||||
"version": "1.0.16",
|
||||
"version": "1.0.17",
|
||||
"description": "Get properties of EMV-based network",
|
||||
"main": "index.js",
|
||||
"directories": {
|
||||
|
|
|
@ -239,7 +239,7 @@ describe('eth-net-props', () => {
|
|||
const ETCRPCEndpoints = RPCEndpoints.getRPCEndpoints('1\'')
|
||||
assert.equal(ETCRPCEndpoints.length, 1)
|
||||
if (ETCRPCEndpoints.length > 0) {
|
||||
assert.equal(ETCRPCEndpoints[0], 'https://ethereumclassic.network/')
|
||||
assert.equal(ETCRPCEndpoints[0], 'https://etc-parity.0xinfra.com')
|
||||
}
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue