diff options
Fix normalizeMsgData function to always return hex prefixed
Diffstat (limited to 'app/scripts/lib/personal-message-manager.js')
-rw-r--r-- | app/scripts/lib/personal-message-manager.js | 2 |
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.`) |