aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/lib/personal-message-manager.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/scripts/lib/personal-message-manager.js')
-rw-r--r--app/scripts/lib/personal-message-manager.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/scripts/lib/personal-message-manager.js b/app/scripts/lib/personal-message-manager.js
index fc2cccdf1..fdb94f5ec 100644
--- a/app/scripts/lib/personal-message-manager.js
+++ b/app/scripts/lib/personal-message-manager.js
@@ -285,7 +285,7 @@ module.exports = class PersonalMessageManager extends EventEmitter {
log.debug(`Message was not hex encoded, interpreting as utf8.`)
}
- return ethUtil.bufferToHex(new Buffer(data, 'utf8'))
+ return ethUtil.bufferToHex(Buffer.from(data, 'utf8'))
}
}