mirror of https://github.com/embarklabs/embark.git
update web3.js
This commit is contained in:
parent
fb6e930313
commit
fb1097b191
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue