git ssb

0+

wanderer🌟 / js-primea-hypervisor



Commit 3cb8a54180de3ba70e81bfebcd2e944557d99715

Utils: rename ethUtils to ethUtil to be consistent

Alex Beregszaszi committed on 8/26/2016, 11:34:28 PM
Parent: 67053274fc3dc39d5be81c4365673d94bd15a6bf

Files changed

utils.jschanged
utils.jsView
@@ -1,5 +1,5 @@
1-const ethUtils = require('ethereumjs-util')
1+const ethUtil = require('ethereumjs-util')
22 const Address = require('./address.js')
33
44 var Utils = {}
55
@@ -7,8 +7,8 @@
77 return code.slice(0, 4).toString() === new Uint8Array([0, 0x61, 0x73, 0x6d]).toString()
88 }
99
1010 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'))
1212 }
1313
1414 module.exports = Utils

Built with git-ssb-web