From 49971e9ec250888746546f62fa176ed129bf9c74 Mon Sep 17 00:00:00 2001 From: Noah Zinsmeister Date: Mon, 10 Dec 2018 08:17:52 -0500 Subject: fix formatting of 32-byte strings in personal_sign (#5878) --- ui/app/components/signature-request.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui') 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 } -- cgit