ethereumjs-account
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -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", |
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
36996
5