Merge pull request #10 from poanetwork/ropsten-faucet-fix

(Fix) Remove broken Ropsten faucet link
This commit is contained in:
Victor Baranov 2018-11-07 13:22:18 +03:00 committed by GitHub
commit 9bfef9f0a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 6 deletions

View File

@ -2,7 +2,7 @@ function getFaucetLinks(network) {
const netID = parseInt(network)
switch (netID) {
case 3:
return ['https://faucet.ropsten.be/', 'https://faucet.metamask.io/']
return ['https://faucet.metamask.io/']
case 4:
return ['https://faucet.rinkeby.io/']
case 42:

2
package-lock.json generated
View File

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

View File

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

View File

@ -94,10 +94,9 @@ describe('eth-net-props', () => {
})
it(`${claimPrefix} Ropsten Network`, () => {
const ropstenFaucetLinks = faucetLinks.getFaucetLinks(3)
assert.equal(ropstenFaucetLinks.length, 2)
assert.equal(ropstenFaucetLinks.length, 1)
if (ropstenFaucetLinks.length > 0) {
assert.equal(ropstenFaucetLinks[0], 'https://faucet.ropsten.be/')
assert.equal(ropstenFaucetLinks[1], 'https://faucet.metamask.io/')
assert.equal(ropstenFaucetLinks[0], 'https://faucet.metamask.io/')
}
})
it(`${claimPrefix} Rinkeby Network`, () => {