@ethersproject/networks
Advanced tools
Comparing version 5.4.0 to 5.4.1
@@ -1,2 +0,2 @@ | ||
export declare const version = "networks/5.4.0"; | ||
export declare const version = "networks/5.4.1"; | ||
//# sourceMappingURL=_version.d.ts.map |
@@ -1,2 +0,2 @@ | ||
export const version = "networks/5.4.0"; | ||
export const version = "networks/5.4.1"; | ||
//# sourceMappingURL=_version.js.map |
@@ -22,4 +22,13 @@ "use strict"; | ||
if (providers.EtherscanProvider) { | ||
//try { | ||
// providerList.push(new providers.EtherscanProvider(network, options.etherscan)); | ||
//} catch(error) { } | ||
// These networks are currently faulty on this provider | ||
// @TODO: This goes away once they have fixed their nodes | ||
const skip = ["ropsten"]; | ||
try { | ||
providerList.push(new providers.EtherscanProvider(network, options.etherscan)); | ||
const provider = new providers.EtherscanProvider(network); | ||
if (provider.network && skip.indexOf(provider.network.name) === -1) { | ||
providerList.push(provider); | ||
} | ||
} | ||
@@ -34,3 +43,2 @@ catch (error) { } | ||
} | ||
/* | ||
if (providers.PocketProvider) { | ||
@@ -41,3 +49,3 @@ // These networks are currently faulty on Pocket as their | ||
// @TODO: This goes away once Pocket has upgraded their nodes | ||
const skip = [ "goerli", "ropsten", "rinkeby" ]; | ||
const skip = ["goerli", "ropsten", "rinkeby"]; | ||
try { | ||
@@ -48,5 +56,5 @@ const provider = new providers.PocketProvider(network); | ||
} | ||
} catch(error) { } | ||
} | ||
catch (error) { } | ||
} | ||
*/ | ||
if (providers.CloudflareProvider) { | ||
@@ -53,0 +61,0 @@ try { |
@@ -1,2 +0,2 @@ | ||
export declare const version = "networks/5.4.0"; | ||
export declare const version = "networks/5.4.1"; | ||
//# sourceMappingURL=_version.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.version = void 0; | ||
exports.version = "networks/5.4.0"; | ||
exports.version = "networks/5.4.1"; | ||
//# sourceMappingURL=_version.js.map |
@@ -24,4 +24,13 @@ "use strict"; | ||
if (providers.EtherscanProvider) { | ||
//try { | ||
// providerList.push(new providers.EtherscanProvider(network, options.etherscan)); | ||
//} catch(error) { } | ||
// These networks are currently faulty on this provider | ||
// @TODO: This goes away once they have fixed their nodes | ||
var skip = ["ropsten"]; | ||
try { | ||
providerList.push(new providers.EtherscanProvider(network, options.etherscan)); | ||
var provider = new providers.EtherscanProvider(network); | ||
if (provider.network && skip.indexOf(provider.network.name) === -1) { | ||
providerList.push(provider); | ||
} | ||
} | ||
@@ -36,3 +45,2 @@ catch (error) { } | ||
} | ||
/* | ||
if (providers.PocketProvider) { | ||
@@ -43,11 +51,11 @@ // These networks are currently faulty on Pocket as their | ||
// @TODO: This goes away once Pocket has upgraded their nodes | ||
const skip = [ "goerli", "ropsten", "rinkeby" ]; | ||
var skip = ["goerli", "ropsten", "rinkeby"]; | ||
try { | ||
const provider = new providers.PocketProvider(network); | ||
var provider = new providers.PocketProvider(network); | ||
if (provider.network && skip.indexOf(provider.network.name) === -1) { | ||
providerList.push(provider); | ||
} | ||
} catch(error) { } | ||
} | ||
catch (error) { } | ||
} | ||
*/ | ||
if (providers.CloudflareProvider) { | ||
@@ -54,0 +62,0 @@ try { |
@@ -18,3 +18,3 @@ { | ||
], | ||
"gitHead": "c2c0ce75039e7256b287f9a764188d08ed0b7296", | ||
"gitHead": "bde861436ebef572d04ae8a7a111b8b954b4571c", | ||
"keywords": [ | ||
@@ -40,5 +40,5 @@ "Ethereum", | ||
"sideEffects": false, | ||
"tarballHash": "0xd099d7aa077bec37436efc5602ebb865db11c7de6f7990ccafd499d3565dffa6", | ||
"tarballHash": "0x05b540d47e24bb2fe376e665c955c64e726b6450977fa12a506d6711ce482eef", | ||
"types": "./lib/index.d.ts", | ||
"version": "5.4.0" | ||
"version": "5.4.1" | ||
} |
@@ -1,1 +0,1 @@ | ||
export const version = "networks/5.4.0"; | ||
export const version = "networks/5.4.1"; |
@@ -36,4 +36,14 @@ "use strict"; | ||
if (providers.EtherscanProvider) { | ||
//try { | ||
// providerList.push(new providers.EtherscanProvider(network, options.etherscan)); | ||
//} catch(error) { } | ||
// These networks are currently faulty on this provider | ||
// @TODO: This goes away once they have fixed their nodes | ||
const skip = [ "ropsten" ]; | ||
try { | ||
providerList.push(new providers.EtherscanProvider(network, options.etherscan)); | ||
const provider = new providers.EtherscanProvider(network); | ||
if (provider.network && skip.indexOf(provider.network.name) === -1) { | ||
providerList.push(provider); | ||
} | ||
} catch(error) { } | ||
@@ -48,3 +58,2 @@ } | ||
/* | ||
if (providers.PocketProvider) { | ||
@@ -63,3 +72,2 @@ // These networks are currently faulty on Pocket as their | ||
} | ||
*/ | ||
@@ -66,0 +74,0 @@ if (providers.CloudflareProvider) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
42960
723