diff --git a/customProtocols.js b/customProtocols.js index 5416a92cf..a7bcb27dc 100644 --- a/customProtocols.js +++ b/customProtocols.js @@ -3,7 +3,7 @@ const { protocol } = require('electron'); protocol.registerHttpProtocol( 'mist', (request, callback) => { - // callback({mimeType: 'text/html', data: new Buffer('
Response
')}); + // callback({mimeType: 'text/html', data: Buffer.from('
Response
')}); console.log( request.url.indexOf('mist://interface') !== -1 diff --git a/gulpTasks/maintenance.js b/gulpTasks/maintenance.js index 136f53024..afddccad0 100644 --- a/gulpTasks/maintenance.js +++ b/gulpTasks/maintenance.js @@ -88,7 +88,7 @@ gulp.task('update-nodes', cb => { geth.platforms[platform][arch].download.url.split('/') ) ) { - const sum = new Buffer( + const sum = Buffer.from( blob.Properties[0]['Content-MD5'][0], 'base64' ); diff --git a/modules/abi.js b/modules/abi.js index ec9bfa984..340583734 100644 --- a/modules/abi.js +++ b/modules/abi.js @@ -24,7 +24,7 @@ ipc.on('backendAction_decodeFunctionSignature', (event, _signature, _data) => { const paramTypes = signature[1].split(','); try { - const paramsResponse = abi.rawDecode(paramTypes, new Buffer(data, 'hex')); + const paramsResponse = abi.rawDecode(paramTypes, Buffer.from(data, 'hex')); const paramsDictArr = []; // Turns addresses into proper hex string