Skip to content

Commit

Permalink
Updated sha3-named constants with keccak256-named versions
Browse files Browse the repository at this point in the history
  • Loading branch information
holgerd77 committed Oct 10, 2018
1 parent 92fb4df commit 32f4907
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/hooked.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function createHookedVm (opts, hooks) {
results._exists = results.nonce !== '0x0' || results.balance !== '0x0' || results._code !== '0x'
// console.log('fetch account results:', results)
var account = new Account(results)
// not used but needs to be anything but the default (ethUtil.SHA3_NULL)
// not used but needs to be anything but the default (ethUtil.KECCAK256_NULL)
// code lookups are handled by `codeStore`
account.codeHash = ZERO_BUFFER.slice()
cb(null, account)
Expand Down
2 changes: 1 addition & 1 deletion lib/stateManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ proto.accountIsEmpty = function (address, cb) {
return cb(err)
}

cb(null, account.nonce.toString('hex') === '' && account.balance.toString('hex') === '' && account.codeHash.toString('hex') === utils.SHA3_NULL_S)
cb(null, account.nonce.toString('hex') === '' && account.balance.toString('hex') === '' && account.codeHash.toString('hex') === utils.KECCAK256_NULL_S)
})
}

Expand Down

0 comments on commit 32f4907

Please sign in to comment.