Socket
Socket
Sign inDemoInstall

ethereumjs-account

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ethereumjs-account - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

.index.js.swo

4

index.js

@@ -30,3 +30,3 @@ const ethUtil = require('ethereumjs-util')

Account.prototype.isContract = function (address) {
var result = this.codeHash.toString('hex') !== ethUtil.SHA3_NULL
var result = this.codeHash.toString('hex') !== ethUtil.SHA3_NULL.toString('hex')
if (address) {

@@ -45,3 +45,3 @@ result |= this.isPrecompiled(address)

Account.prototype.getCode = function (state, cb) {
if (this.codeHash.toString('hex') === ethUtil.SHA3_NULL) {
if (this.codeHash.toString('hex') === ethUtil.SHA3_NULL.toString('hex')) {
cb(null, new Buffer([]))

@@ -48,0 +48,0 @@ return

{
"name": "ethereumjs-account",
"version": "1.0.2",
"version": "1.0.3",
"description": "a help module for ethereum account schema",

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