From 01172a0b7f0e07807d2d318284c1b08d0f03b163 Mon Sep 17 00:00:00 2001 From: MrNerdHair Date: Sat, 3 Jun 2023 00:59:43 -0500 Subject: [PATCH] fix walletconnect signing raw byte arrays (#636) --- .../src/kkdesktop/walletconnect/service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/keepkey-desktop-app/src/kkdesktop/walletconnect/service.ts b/packages/keepkey-desktop-app/src/kkdesktop/walletconnect/service.ts index 188347949..f9582ef4f 100644 --- a/packages/keepkey-desktop-app/src/kkdesktop/walletconnect/service.ts +++ b/packages/keepkey-desktop-app/src/kkdesktop/walletconnect/service.ts @@ -121,9 +121,9 @@ export class LegacyWCService { : inputHexString if (request.payload && request.payload.params[0]) - message = Buffer.from(strip0x(request.payload.params[0]), 'hex').toString('utf8') + message = Buffer.from(strip0x(request.payload.params[0]), 'hex') if (request.params && request.params[0]) - message = Buffer.from(strip0x(request.params[0]), 'hex').toString('utf8') + message = Buffer.from(strip0x(request.params[0]), 'hex') if (!message) throw Error('failed to parse message!')