Skip to content

Commit

Permalink
cleaner empty account conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
cdetrio committed Jul 27, 2017
1 parent 4a8d939 commit 853ec10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/stateManager.js
Expand Up @@ -322,6 +322,6 @@ proto.accountIsEmpty = function (address, cb) {
return cb(err)
}

cb(null, Object.keys(account.nonce).length === 0 && Object.keys(account.balance).length === 0 && account.codeHash.toString('hex') === utils.sha3('').toString('hex'))
cb(null, account.nonce.toString('hex') === '' && account.balance.toString('hex') === '' && account.codeHash.toString('hex') === utils.SHA3_NULL_S)
})
}

0 comments on commit 853ec10

Please sign in to comment.