Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

web3-eth-abi

Package Overview
Dependencies
Maintainers
2
Versions
491
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

web3-eth-abi - npm Package Compare versions

Comparing version 1.2.4 to 1.2.5-rc.0

6

package.json
{
"name": "web3-eth-abi",
"version": "1.2.4",
"version": "1.2.5-rc.0",
"description": "Web3 module encode and decode EVM in/output.",

@@ -18,3 +18,3 @@ "repository": "https://github.com/ethereum/web3.js/tree/1.x/packages/web3-eth-abi",

"underscore": "1.9.1",
"web3-utils": "1.2.4"
"web3-utils": "1.2.5-rc.0"
},

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

},
"gitHead": "341015ab24efc3ea1e5d8afd07e8c92a7c738536"
"gitHead": "e919f81ccf7fee23a2d9075fa141bec0ff4a087a"
}

@@ -79,4 +79,6 @@ /*

* @method encodeParameter
* @param {String} type
* @param {Object} param
*
* @param {String|Object} type
* @param {any} param
*
* @return {String} encoded plain param

@@ -92,8 +94,19 @@ */

* @method encodeParameters
* @param {Array} types
* @param {Array} params
*
* @param {Array<String|Object>} types
* @param {Array<any>} params
*
* @return {String} encoded list of params
*/
ABICoder.prototype.encodeParameters = function (types, params) {
return ethersAbiCoder.encode(this.mapTypes(types), params);
return ethersAbiCoder.encode(
this.mapTypes(types),
params.map(function (param) {
if (utils.isBN(param) || utils.isBigNumber(param)) {
return param.toString(10);
}
return param;
})
);
};

@@ -100,0 +113,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