Socket
Socket
Sign inDemoInstall

web3-core-method

Package Overview
Dependencies
Maintainers
1
Versions
137
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

web3-core-method - npm Package Compare versions

Comparing version 1.0.0-beta.17 to 1.0.0-beta.18

6

package.json
{
"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 @@ };

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc