feat: manually fix linting errors across tests

This commit is contained in:
Matt Condon
2017-11-24 15:37:36 +02:00
parent 227a335399
commit d07bdccc0c
23 changed files with 70 additions and 63 deletions

View File

@ -2,7 +2,7 @@ import utils from 'ethereumjs-util';
// Hash and add same prefix to the hash that testrpc use.
module.exports = function (message) {
const messageHex = new Buffer(utils.sha3(message).toString('hex'), 'hex');
const messageHex = Buffer.from(utils.sha3(message).toString('hex'), 'hex');
const prefix = utils.toBuffer('\u0019Ethereum Signed Message:\n' + messageHex.length.toString());
return utils.bufferToHex(utils.sha3(Buffer.concat([prefix, messageHex])));
};