ethereumjs-util
Advanced tools
Comparing version 0.0.10 to 0.1.0
@@ -159,4 +159,6 @@ const SHA3 = require('sha3'), | ||
exports.sha3 = function(a) { | ||
var h = new SHA3.SHA3Hash(256); | ||
exports.sha3 = function(a, bytes) { | ||
if(!bytes) bytes = 256 | ||
var h = new SHA3.SHA3Hash(bytes); | ||
if (a) { | ||
@@ -392,3 +394,2 @@ h.update(a); | ||
/// used to transform value/string to eth string | ||
/// TODO: use BigNumber.js to parse int | ||
exports.toEth = function(str) { | ||
@@ -395,0 +396,0 @@ var val = typeof str === 'string' ? str.indexOf('0x') === 0 ? parseInt(str.substr(2), 16) : parseInt(str) : str; |
{ | ||
"name": "ethereumjs-util", | ||
"version": "0.0.10", | ||
"version": "0.1.0", | ||
"description": "a collection of utility functions for Ethereum", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
16795