diff --git a/package-lock.json b/package-lock.json index 5f5b8ceda..036068061 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "ethers", - "version": "4.0.26", + "version": "4.0.27", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index c84e264ea..5c70d2692 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ethers", - "version": "4.0.26", + "version": "4.0.27", "description": "Ethereum wallet library.", "main": "./index.js", "types": "./index.d.ts", diff --git a/src.ts/providers/infura-provider.ts b/src.ts/providers/infura-provider.ts index eea640d0b..0eebe0c3c 100644 --- a/src.ts/providers/infura-provider.ts +++ b/src.ts/providers/infura-provider.ts @@ -32,6 +32,9 @@ export class InfuraProvider extends JsonRpcProvider { case 'rinkeby': host = 'rinkeby.infura.io'; break; + case 'goerli': + host = 'goerli.infura.io'; + break; case 'kovan': host = 'kovan.infura.io'; break; diff --git a/src.ts/utils/networks.ts b/src.ts/utils/networks.ts index 9b9d6448b..c49584ea8 100644 --- a/src.ts/utils/networks.ts +++ b/src.ts/utils/networks.ts @@ -86,12 +86,7 @@ const networks: { [name: string]: Network } = { chainId: 5, ensAddress: "0x112234455c3a32fd11230c42e7bccd4a84e02010", name: "goerli", - _defaultProvider: (providers: any): any => { - if (providers.EtherscanProvider) { - return new providers.EtherscanProvider("goerli"); - } - return null; - } + _defaultProvider: ethDefaultProvider('goerli') }, kovan: { diff --git a/tests/test-providers.js b/tests/test-providers.js index f30e4dfa4..04e7eee92 100644 --- a/tests/test-providers.js +++ b/tests/test-providers.js @@ -414,12 +414,6 @@ function testProvider(providerName, networkName) { ['default', 'homestead', 'ropsten', 'rinkeby', 'kovan', 'goerli'].forEach(function(networkName) { ['getDefaultProvider', 'InfuraProvider', 'EtherscanProvider', 'Web3Provider'].forEach(function(providerName) { - if (networkName === "goerli") { - if (providerName === "InfuraProvider" || providerName === "Web3Provider") { - return; - } - } - // @TODO: Remove this! Temporary because Etherscan is down //if (providerName === 'EtherscanProvider') { // console.log("******** Remove this soon! Etherscan is having issues.");