From 8f4daeeecb06d84d6f4fefe2cb678d59a26e392d Mon Sep 17 00:00:00 2001 From: mtyszczak <mateusz.tyszczak@gmail.com> Date: Tue, 11 Mar 2025 16:02:00 +0100 Subject: [PATCH] Fix sign and encode buffer methods --- package.json | 2 +- snap.manifest.json | 4 ++-- src/snap/dialogs/ConfirmBufferSign.tsx | 9 +++++---- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 9242d20..6907f8b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hiveio/metamask-snap", - "version": "1.2.0", + "version": "1.2.1", "description": "Hive wallet extension allowing you to sign transactions using keys derived from your Metamask wallet", "main": "./dist/bundle.js", "files": [ diff --git a/snap.manifest.json b/snap.manifest.json index f18e439..72a551b 100644 --- a/snap.manifest.json +++ b/snap.manifest.json @@ -1,5 +1,5 @@ { - "version": "1.2.0", + "version": "1.2.1", "description": "Hive wallet extension allowing you to sign transactions using keys derived from your Metamask wallet", "proposedName": "Hive Wallet", "repository": { @@ -7,7 +7,7 @@ "url": "git+https://gitlab.syncad.com/hive/metamask-snap.git" }, "source": { - "shasum": "hAf7KSZu0ZiIU/ZhuggOpgN1Fw0TeiUw/bD2+lxjQN4=", + "shasum": "MXajRhEb2TjGR6uz1Q/BWyrqfzvNX0WPxcdKx+2ZlaQ=", "location": { "npm": { "filePath": "dist/bundle.js", diff --git a/src/snap/dialogs/ConfirmBufferSign.tsx b/src/snap/dialogs/ConfirmBufferSign.tsx index e826908..ca7a861 100644 --- a/src/snap/dialogs/ConfirmBufferSign.tsx +++ b/src/snap/dialogs/ConfirmBufferSign.tsx @@ -15,12 +15,13 @@ export const ConfirmBufferSign = (origin: string, buffer: string, firstKey: KeyI Confirm if you want to sign it using your: </Text> <Text> - - <Bold>{firstKeykey.role}</Bold> key (account index: <Italic>#{ String(firstKey.accountIndex ?? 0) }</Italic>) + - <Bold>{firstKey.role}</Bold> key (account index: <Italic>#{ String(firstKey.accountIndex ?? 0) }</Italic>) </Text> + <Text>This message will be encrypted for: </Text> { secondKey ? (typeof secondKey === "string" ? - <Text>This message will be encrypted for: <Copyable value={secondKey}/></Text> : - <Text>This message will be encrypted for: <Bold>{secondKey.role}</Bold> key (account index: <Italic>#{ String(secondKey.accountIndex ?? 0) }</Italic>)</Text> - ) : <Text>This message can only be viewed by you</Text> } + <Copyable value={ secondKey }/> : + <Text>- <Bold>{secondKey.role}</Bold> key (account index: <Italic>#{ String(secondKey.accountIndex ?? 0) }</Italic>)</Text> + ) : <Text>- <Bold>yourself</Bold></Text> } </Box> ) } -- GitLab