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 2.0.1 to 2.0.2

2

index.js

@@ -245,3 +245,3 @@ const SHA3 = require('sha3')

}
return exports.isHexPrefixed(str) ? '0x' + str : str
return exports.isHexPrefixed(str) ? str : '0x' + str
}

@@ -248,0 +248,0 @@

{
"name": "ethereumjs-util",
"version": "2.0.1",
"version": "2.0.2",
"description": "a collection of utility functions for Ethereum",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -11,3 +11,3 @@ var assert = require('assert')

name: 'empty',
empty: true,
allowZero: true,
length: 20,

@@ -17,5 +17,2 @@ default: new Buffer([])

name: 'value',
empty: true,
word: true,
noZero: true,
default: new Buffer([])

@@ -22,0 +19,0 @@ }, {

@@ -132,1 +132,8 @@ var assert = require('assert')

})
describe('hex prefix', function () {
var string = 'd658a4b8247c14868f3c512fa5cbb6e458e4a989'
it(' should add', function () {
assert.equal(ethUtils.addHexPrefix(string), '0x' + string)
})
})

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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