diff options
author | Noah Zinsmeister <noahwz@gmail.com> | 2018-12-10 21:17:52 +0800 |
---|---|---|
committer | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2018-12-10 21:17:52 +0800 |
commit | 49971e9ec250888746546f62fa176ed129bf9c74 (patch) | |
tree | 7ef8ece9fe372febf1a46030904979e0b7d5a4a2 /ui | |
parent | d8ab9cc002c10757b7382a174dafff7a0247e307 (diff) | |
download | tangerine-wallet-browser-49971e9ec250888746546f62fa176ed129bf9c74.tar tangerine-wallet-browser-49971e9ec250888746546f62fa176ed129bf9c74.tar.gz tangerine-wallet-browser-49971e9ec250888746546f62fa176ed129bf9c74.tar.bz2 tangerine-wallet-browser-49971e9ec250888746546f62fa176ed129bf9c74.tar.lz tangerine-wallet-browser-49971e9ec250888746546f62fa176ed129bf9c74.tar.xz tangerine-wallet-browser-49971e9ec250888746546f62fa176ed129bf9c74.tar.zst tangerine-wallet-browser-49971e9ec250888746546f62fa176ed129bf9c74.zip |
fix formatting of 32-byte strings in personal_sign (#5878)
Diffstat (limited to 'ui')
-rw-r--r-- | ui/app/components/signature-request.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/app/components/signature-request.js b/ui/app/components/signature-request.js index 85af3b00b..715fea13f 100644 --- a/ui/app/components/signature-request.js +++ b/ui/app/components/signature-request.js @@ -164,7 +164,7 @@ SignatureRequest.prototype.msgHexToText = function (hex) { try { const stripped = ethUtil.stripHexPrefix(hex) const buff = Buffer.from(stripped, 'hex') - return buff.toString('utf8') + return buff.length === 32 ? hex : buff.toString('utf8') } catch (e) { return hex } |