aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2017-03-07 08:33:33 +0800
committerDan Finlay <dan@danfinlay.com>2017-03-07 08:33:33 +0800
commite66e755766ef318c38277c184d2670cc2179d37a (patch)
tree9989fe06bc29295925d2b4a8e492848bcecf1c50 /app/scripts
parent26ea5993a9dffa687b50446bbffd0d2310a796bc (diff)
downloadtangerine-wallet-browser-e66e755766ef318c38277c184d2670cc2179d37a.tar
tangerine-wallet-browser-e66e755766ef318c38277c184d2670cc2179d37a.tar.gz
tangerine-wallet-browser-e66e755766ef318c38277c184d2670cc2179d37a.tar.bz2
tangerine-wallet-browser-e66e755766ef318c38277c184d2670cc2179d37a.tar.lz
tangerine-wallet-browser-e66e755766ef318c38277c184d2670cc2179d37a.tar.xz
tangerine-wallet-browser-e66e755766ef318c38277c184d2670cc2179d37a.tar.zst
tangerine-wallet-browser-e66e755766ef318c38277c184d2670cc2179d37a.zip
Fix normalizeMsgData function to always return hex prefixed
Diffstat (limited to 'app/scripts')
-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 04dba4a90..bbc978446 100644
--- a/app/scripts/lib/personal-message-manager.js
+++ b/app/scripts/lib/personal-message-manager.js
@@ -112,7 +112,7 @@ module.exports = class PersonalMessageManager extends EventEmitter{
try {
const stripped = ethUtil.stripHexPrefix(data)
if (stripped.match(hexRe)) {
- return stripped
+ return ethUtil.addHexPrefix(stripped)
}
} catch (e) {
log.debug(`Message was not hex encoded, interpreting as utf8.`)