Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
this._currentProvider = this.providerResolver.resolve(provider, nodeNet);
this._defaultAccount = options.defaultAccount ? toChecksumAddress(options.defaultAccount) : undefined;
this._defaultBlock = options.defaultBlock || 'latest';
this._transactionBlockTimeout = options.transactionBlockTimeout || 50;
this._transactionConfirmationBlocks = options.transactionConfirmationBlocks || 0;
this._transactionPollingTimeout = options.transactionPollingTimeout || 750;
this._defaultGasPrice = options.defaultGasPrice;
this._defaultGas = options.defaultGas;
this.BatchRequest = () => {
return new BatchRequest(this);
};
// TODO: Remove the MethodProxy after refactoring of the BatchRequest object
if (methodFactory) {
return new MethodProxy(this, methodFactory);
}
}
this.givenProvider = ProviderDetector.detect();
this._currentProvider = this.providerResolver.resolve(provider, nodeNet);
this._defaultAccount = options.defaultAccount ? toChecksumAddress(options.defaultAccount) : undefined;
this._defaultBlock = options.defaultBlock || 'latest';
this._transactionBlockTimeout = options.transactionBlockTimeout || 50;
this._transactionConfirmationBlocks = options.transactionConfirmationBlocks || 0;
this._transactionPollingTimeout = options.transactionPollingTimeout || 750;
this._defaultGasPrice = options.defaultGasPrice;
this._defaultGas = options.defaultGas;
this.BatchRequest = () => {
return new BatchRequest(this);
};
if (methodFactory) {
return new MethodProxy(this, methodFactory);
}
}