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

ethereumjs-util

Package Overview
Dependencies
Maintainers
1
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ethereumjs-util - npm Package Compare versions

Comparing version 0.0.10 to 0.1.0

7

index.js

@@ -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",

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