Merge pull request #17 from poanetwork/etc-rpc-endpoint-fix

Change RPC endpoint for Classic
This commit is contained in:
Victor Baranov 2019-03-27 15:57:05 +03:00 committed by GitHub
commit 13e7bf767c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -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 []
}

2
package-lock.json generated
View File

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

View File

@ -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": {

View File

@ -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')
}
})
})