mirror of
https://github.com/status-im/status-mobile.git
synced 2025-02-07 06:15:27 +00:00
[#12535] Human Readable data display when signing using eth_signTypedData_v3
Signed-off-by: andrey <motor4ik@gmail.com>
This commit is contained in:
parent
130308fa8a
commit
c466f96326
@ -236,7 +236,9 @@
|
|||||||
:signing/sign {:type (cond pinless? :pinless
|
:signing/sign {:type (cond pinless? :pinless
|
||||||
keycard-multiaccount? :keycard
|
keycard-multiaccount? :keycard
|
||||||
:else :password)
|
:else :password)
|
||||||
:formatted-data (if typed? (types/json->clj data) (ethereum/hex->text data))
|
:formatted-data (if typed?
|
||||||
|
(types/js->pretty-json (types/json->js data))
|
||||||
|
(ethereum/hex->text data))
|
||||||
:keycard-step (when pinless? :connect)})
|
:keycard-step (when pinless? :connect)})
|
||||||
:show-signing-sheet nil}
|
:show-signing-sheet nil}
|
||||||
#(when-not wallet-set-up-passed?
|
#(when-not wallet-set-up-passed?
|
||||||
|
@ -13,6 +13,9 @@
|
|||||||
(defn clj->pretty-json [data spaces]
|
(defn clj->pretty-json [data spaces]
|
||||||
(.stringify js/JSON (clj-bean/->js data) nil spaces))
|
(.stringify js/JSON (clj-bean/->js data) nil spaces))
|
||||||
|
|
||||||
|
(defn js->pretty-json [data]
|
||||||
|
(.stringify js/JSON data nil 2))
|
||||||
|
|
||||||
(defn clj->json [data]
|
(defn clj->json [data]
|
||||||
(clj->pretty-json data 0))
|
(clj->pretty-json data 0))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user