web3-core-method
Advanced tools
Comparing version 1.0.0-beta.17 to 1.0.0-beta.18
{ | ||
"name": "web3-core-method", | ||
"version": "1.0.0-beta.17", | ||
"version": "1.0.0-beta.18", | ||
"description": "Creates the methods on the web3 modules. This is an internal package.", | ||
@@ -10,7 +10,7 @@ "repository": "https://github.com/ethereum/web3.js/tree/master/packages/web3-core-method", | ||
"underscore": "1.8.3", | ||
"web3-core-helpers": "^1.0.0-beta.17", | ||
"web3-core-helpers": "^1.0.0-beta.18", | ||
"web3-core-promievent": "^1.0.0-beta.17", | ||
"web3-core-subscriptions": "^1.0.0-beta.17", | ||
"web3-core-subscriptions": "^1.0.0-beta.18", | ||
"web3-utils": "^1.0.0-beta.17" | ||
} | ||
} |
@@ -50,5 +50,8 @@ /* | ||
this.requestManager = options.requestManager; | ||
// reference to eth.accounts | ||
this.accounts = options.accounts; | ||
this.defaultBlock = options.defaultBlock || 'latest'; | ||
this.defaultAccount = options.defaultAccount || null; | ||
}; | ||
@@ -150,2 +153,4 @@ | ||
Method.prototype.formatInput = function (args) { | ||
var _this = this; | ||
if (!this.inputFormatter) { | ||
@@ -156,3 +161,4 @@ return args; | ||
return this.inputFormatter.map(function (formatter, index) { | ||
return formatter ? formatter(args[index]) : args[index]; | ||
// bind this for defaultBlock, and defaultAccount | ||
return formatter ? formatter.call(_this, args[index]) : args[index]; | ||
}); | ||
@@ -159,0 +165,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
20045
458