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.3 to 1.0.4

test.js

2

index.js

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

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

@@ -32,0 +32,0 @@ if (address) {

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

@@ -24,3 +24,3 @@ "main": "index.js",

"dependencies": {
"ethereumjs-util": "2.0.1",
"ethereumjs-util": "2.0.4",
"rlp": "2.0.0"

@@ -27,0 +27,0 @@ },

@@ -33,6 +33,6 @@ # SYNOPSIS

var raw = [
'02', //nonce
'0384', //balance
'56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421', //stateRoot
'c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470' //codeHash
'0x02', //nonce
'0x0384', //balance
'0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421', //stateRoot
'0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470' //codeHash
];

@@ -48,5 +48,5 @@

nonce: '',
balance: '03e7',
stateRoot: '56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421',
codeHash: 'c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470'
balance: '0x03e7',
stateRoot: '0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421',
codeHash: '0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470'
};

@@ -53,0 +53,0 @@

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