web3-core
Advanced tools
Comparing version 1.0.0-beta.47 to 1.0.0-beta.48
@@ -20,2 +20,3 @@ 'use strict'; | ||
var options = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {}; | ||
var net = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : null; | ||
_classCallCheck(this, AbstractWeb3Module); | ||
@@ -26,3 +27,3 @@ this.providersModuleFactory = providersModuleFactory; | ||
this.givenProvider = this.providerDetector.detect(); | ||
this._currentProvider = this.providerResolver.resolve(provider); | ||
this._currentProvider = this.providerResolver.resolve(provider, net); | ||
this._defaultAccount = options.defaultAccount ? web3Utils.toChecksumAddress(options.defaultAccount) : undefined; | ||
@@ -29,0 +30,0 @@ this._defaultBlock = options.defaultBlock || 'latest'; |
@@ -6,3 +6,3 @@ import isObject from 'lodash/isObject'; | ||
class AbstractWeb3Module { | ||
constructor(provider, providersModuleFactory, methodModuleFactory = null, methodFactory = null, options = {}) { | ||
constructor(provider, providersModuleFactory, methodModuleFactory = null, methodFactory = null, options = {}, net = null) { | ||
this.providersModuleFactory = providersModuleFactory; | ||
@@ -12,3 +12,3 @@ this.providerDetector = providersModuleFactory.createProviderDetector(); | ||
this.givenProvider = this.providerDetector.detect(); | ||
this._currentProvider = this.providerResolver.resolve(provider); | ||
this._currentProvider = this.providerResolver.resolve(provider, net); | ||
this._defaultAccount = options.defaultAccount ? toChecksumAddress(options.defaultAccount) : undefined; | ||
@@ -15,0 +15,0 @@ this._defaultBlock = options.defaultBlock || 'latest'; |
@@ -18,2 +18,3 @@ (function (global, factory) { | ||
var options = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {}; | ||
var net = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : null; | ||
_classCallCheck(this, AbstractWeb3Module); | ||
@@ -24,3 +25,3 @@ this.providersModuleFactory = providersModuleFactory; | ||
this.givenProvider = this.providerDetector.detect(); | ||
this._currentProvider = this.providerResolver.resolve(provider); | ||
this._currentProvider = this.providerResolver.resolve(provider, net); | ||
this._defaultAccount = options.defaultAccount ? web3Utils.toChecksumAddress(options.defaultAccount) : undefined; | ||
@@ -27,0 +28,0 @@ this._defaultBlock = options.defaultBlock || 'latest'; |
{ | ||
"name": "web3-core", | ||
"namespace": "ethereum", | ||
"version": "1.0.0-beta.47", | ||
"version": "1.0.0-beta.48", | ||
"description": "Web3 core tools for sub packages. This is an internal package.", | ||
@@ -22,8 +22,8 @@ "repository": "https://github.com/ethereum/web3.js/tree/1.0/packages/web3-core", | ||
"lodash": "^4.17.11", | ||
"web3-utils": "1.0.0-beta.47" | ||
"web3-utils": "1.0.0-beta.48" | ||
}, | ||
"devDependencies": { | ||
"dtslint": "^0.4.2", | ||
"web3-eth-accounts": "1.0.0-beta.47", | ||
"web3-providers": "1.0.0-beta.47" | ||
"web3-eth-accounts": "1.0.0-beta.48", | ||
"web3-providers": "1.0.0-beta.48" | ||
}, | ||
@@ -30,0 +30,0 @@ "files": [ |
@@ -39,3 +39,4 @@ /* | ||
methodFactory?: any, | ||
options?: Web3ModuleOptions | ||
options?: Web3ModuleOptions, | ||
net?: net.Socket | ||
); | ||
@@ -42,0 +43,0 @@ |
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
48895
554
+ Addedweb3-utils@1.0.0-beta.48(transitive)
- Removedweb3-utils@1.0.0-beta.47(transitive)
Updatedweb3-utils@1.0.0-beta.48