web3-eth-abi
Advanced tools
Comparing version 1.2.4 to 1.2.5-rc.0
{ | ||
"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 @@ |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
32198
1049
2
+ Addedweb3-utils@1.2.5-rc.0(transitive)
- Removedweb3-utils@1.2.4(transitive)
Updatedweb3-utils@1.2.5-rc.0