Skip to content

Commit 0238ba2

Browse files
[#21939] fix: improve logic
1 parent 7ebd9c5 commit 0238ba2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/status_im/contexts/wallet/wallet_connect/events/session_requests.cljs

+4-2
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,12 @@
6262
:wallet-connect/process-personal-sign
6363
(fn [{:keys [db]}]
6464
(let [[raw-data address] (data-store/get-db-current-request-params db)
65+
parsed-data (if (utils-address/has-hex-prefix? raw-data)
66+
(native-module/hex-to-utf8 raw-data)
67+
raw-data)
6568
hex-message (if (utils-address/has-hex-prefix? raw-data)
6669
raw-data
67-
(native-module/utf8-to-hex raw-data))
68-
parsed-data (native-module/hex-to-utf8 hex-message)]
70+
(native-module/utf8-to-hex raw-data))]
6971
{:db (update-in db
7072
[:wallet-connect/current-request]
7173
assoc

0 commit comments

Comments
 (0)