Commit 3cb8a54180de3ba70e81bfebcd2e944557d99715
Utils: rename ethUtils to ethUtil to be consistent
Alex Beregszaszi committed on 8/26/2016, 11:34:28 PMParent: 67053274fc3dc39d5be81c4365673d94bd15a6bf
Files changed
utils.js | changed |
utils.js | ||
---|---|---|
@@ -1,5 +1,5 @@ | ||
1 | -const ethUtils = require('ethereumjs-util') | |
1 | +const ethUtil = require('ethereumjs-util') | |
2 | 2 | const Address = require('./address.js') |
3 | 3 | |
4 | 4 | var Utils = {} |
5 | 5 | |
@@ -7,8 +7,8 @@ | ||
7 | 7 | return code.slice(0, 4).toString() === new Uint8Array([0, 0x61, 0x73, 0x6d]).toString() |
8 | 8 | } |
9 | 9 | |
10 | 10 | Utils.newAccountAddress = function (sender, data) { |
11 | - return new Address('0x' + ethUtils.sha3(Buffer.concat([ sender.toBuffer(), Buffer.from(data) ])).slice(0, 20).toString('hex')) | |
11 | + return new Address('0x' + ethUtil.sha3(Buffer.concat([ sender.toBuffer(), Buffer.from(data) ])).slice(0, 20).toString('hex')) | |
12 | 12 | } |
13 | 13 | |
14 | 14 | module.exports = Utils |
Built with git-ssb-web