update web3.js

This commit is contained in:
Iuri Matias 2017-02-03 06:47:41 -05:00
parent fb6e930313
commit fb1097b191
1 changed files with 5 additions and 4 deletions

View File

@ -2443,7 +2443,7 @@ module.exports = {
},{"./sha3.js":19,"bignumber.js":"bignumber.js","utf8":85}],21:[function(require,module,exports){
module.exports={
"version": "0.18.0"
"version": "0.18.2"
}
},{}],22:[function(require,module,exports){
@ -2936,6 +2936,8 @@ var ContractFactory = function (eth, abi) {
* @returns {Contract} returns contract instance
*/
this.new = function () {
/*jshint maxcomplexity: 7 */
var contract = new Contract(this.eth, this.abi);
// parse arguments
@ -4199,13 +4201,10 @@ module.exports = SolidityFunction;
* @date 2015
*/
"use strict";
var errors = require('./errors');
// workaround to use httpprovider in different envs
var XMLHttpRequest; // jshint ignore: line
var XHR2 = require('xhr2');; // jshint ignore: line
// browser
if (typeof window !== 'undefined' && window.XMLHttpRequest) {
@ -4215,6 +4214,8 @@ if (typeof window !== 'undefined' && window.XMLHttpRequest) {
XMLHttpRequest = require('xmlhttprequest').XMLHttpRequest; // jshint ignore: line
}
var XHR2 = require('xhr2'); // jshint ignore: line
/**
* HttpProvider should be used to send rpc calls over http
*/