aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2017-03-07 09:24:04 +0800
committerDan Finlay <dan@danfinlay.com>2017-03-07 09:24:04 +0800
commit32c767fbe8a8dc8854333318563d5def368cf85f (patch)
tree4507dd2a04ce7b3dbb827ea234484fbc8cd81c9f
parentcdcd1b1e8b9219ad2f5b6f029e3f0bc48e879455 (diff)
downloadtangerine-wallet-browser-32c767fbe8a8dc8854333318563d5def368cf85f.tar
tangerine-wallet-browser-32c767fbe8a8dc8854333318563d5def368cf85f.tar.gz
tangerine-wallet-browser-32c767fbe8a8dc8854333318563d5def368cf85f.tar.bz2
tangerine-wallet-browser-32c767fbe8a8dc8854333318563d5def368cf85f.tar.lz
tangerine-wallet-browser-32c767fbe8a8dc8854333318563d5def368cf85f.tar.xz
tangerine-wallet-browser-32c767fbe8a8dc8854333318563d5def368cf85f.tar.zst
tangerine-wallet-browser-32c767fbe8a8dc8854333318563d5def368cf85f.zip
Linted
-rw-r--r--app/scripts/lib/personal-message-manager.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/scripts/lib/personal-message-manager.js b/app/scripts/lib/personal-message-manager.js
index 17c9739de..ddc3ee39c 100644
--- a/app/scripts/lib/personal-message-manager.js
+++ b/app/scripts/lib/personal-message-manager.js
@@ -118,7 +118,7 @@ module.exports = class PersonalMessageManager extends EventEmitter{
log.debug(`Message was not hex encoded, interpreting as utf8.`)
}
- return hexEncode(data)
+ return this.hexEncode(data)
}
hexEncode(text){
@@ -127,7 +127,7 @@ module.exports = class PersonalMessageManager extends EventEmitter{
var result = ''
for (i = 0; i < text.length; i++) {
hex = text.charCodeAt(i).toString(16)
- result += ('000'+hex).slice(-4)
+ result += ('000' + hex).slice(-4)
}
return '0x' + result
}