Updated dist files.

This commit is contained in:
Richard Moore 2018-11-21 16:24:40 -05:00
parent 31d3ee899f
commit e6c943d01f
No known key found for this signature in database
GPG Key ID: 525F70A6FCABC295
4 changed files with 18 additions and 6 deletions

10
dist/ethers.js vendored
View File

@ -912,9 +912,15 @@ exports.version = _version_1.version;
////////////////////////
// Helper Functions
function getDefaultProvider(network) {
var n = utils.getNetwork(network || 'homestead');
if (network == null) {
network = 'homestead';
}
var n = utils.getNetwork(network);
if (!n || !n._defaultProvider) {
return null;
errors.throwError('unsupported getDefaultProvider network', errors.UNSUPPORTED_OPERATION, {
operation: 'getDefaultProvider',
network: network
});
}
return n._defaultProvider(providers);
}

2
dist/ethers.min.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -36,9 +36,15 @@ exports.version = _version_1.version;
////////////////////////
// Helper Functions
function getDefaultProvider(network) {
var n = utils.getNetwork(network || 'homestead');
if (network == null) {
network = 'homestead';
}
var n = utils.getNetwork(network);
if (!n || !n._defaultProvider) {
return null;
errors.throwError('unsupported getDefaultProvider network', errors.UNSUPPORTED_OPERATION, {
operation: 'getDefaultProvider',
network: network
});
}
return n._defaultProvider(providers);
}