Socket
Socket
Sign inDemoInstall

web3-core-method

Package Overview
Dependencies
66
Maintainers
4
Versions
137
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.8.2 to 1.9.0-rc.0

8

lib/index.js

@@ -144,7 +144,7 @@ /*

return result.map(function (res) {
return _this.outputFormatter && res ? _this.outputFormatter(res) : res;
return _this.outputFormatter && res ? _this.outputFormatter(res, this?.hexFormat) : res;
});
}
else {
return this.outputFormatter && result ? this.outputFormatter(result) : result;
return this.outputFormatter && result ? this.outputFormatter(result, this?.hexFormat) : result;
}

@@ -510,3 +510,5 @@ };

method.hexFormat = false;
if (method.call === 'eth_getTransactionReceipt') {
if (method.call === 'eth_getTransactionReceipt'
|| method.call === 'eth_getTransactionByHash'
|| method.name === 'getBlock') {
method.hexFormat = (payload.params.length < args.length && args[args.length - 1] === 'hex');

@@ -513,0 +515,0 @@ }

{
"name": "web3-core-method",
"version": "1.8.2",
"version": "1.9.0-rc.0",
"description": "Creates the methods on the web3 modules. This is an internal package.",

@@ -18,6 +18,6 @@ "repository": "https://github.com/ethereum/web3.js/tree/1.x/packages/web3-core-method",

"@ethersproject/transactions": "^5.6.2",
"web3-core-helpers": "1.8.2",
"web3-core-promievent": "1.8.2",
"web3-core-subscriptions": "1.8.2",
"web3-utils": "1.8.2"
"web3-core-helpers": "1.9.0-rc.0",
"web3-core-promievent": "1.9.0-rc.0",
"web3-core-subscriptions": "1.9.0-rc.0",
"web3-utils": "1.9.0-rc.0"
},

@@ -28,3 +28,3 @@ "devDependencies": {

},
"gitHead": "5442ce929ce1e2d33fd16afb0dd239a3d1f369f8"
"gitHead": "c564ebe63f9bc15e8f8f9e50f690be534534a917"
}

@@ -167,6 +167,6 @@ /*

return result.map(function (res) {
return _this.outputFormatter && res ? _this.outputFormatter(res) : res;
return _this.outputFormatter && res ? _this.outputFormatter(res, this?.hexFormat) : res;
});
} else {
return this.outputFormatter && result ? this.outputFormatter(result) : result;
return this.outputFormatter && result ? this.outputFormatter(result, this?.hexFormat) : result;
}

@@ -641,3 +641,5 @@ };

method.hexFormat = false;
if(method.call === 'eth_getTransactionReceipt'){
if (method.call === 'eth_getTransactionReceipt'
|| method.call === 'eth_getTransactionByHash'
|| method.name === 'getBlock') {
method.hexFormat = (payload.params.length < args.length && args[args.length - 1] === 'hex')

@@ -644,0 +646,0 @@ }

@@ -35,1 +35,3 @@ /*

}
export default Method
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc