[#9665] Allow to change pin after keycard multiacc creation

This commit is contained in:
Roman Volosovskyi 2020-04-10 12:06:51 +03:00
parent c41727c1b3
commit 962d0fb6cd
No known key found for this signature in database
GPG Key ID: 0238A4B5ECEE70DE
1 changed files with 2 additions and 1 deletions

View File

@ -210,7 +210,8 @@
(update :instance-uid #(get-in db [:hardwallet :multiaccount :instance-uid] %)))) (update :instance-uid #(get-in db [:hardwallet :multiaccount :instance-uid] %))))
(assoc-in [:hardwallet :multiaccount-wallet-address] (:wallet-address account-data)) (assoc-in [:hardwallet :multiaccount-wallet-address] (:wallet-address account-data))
(assoc-in [:hardwallet :multiaccount-whisper-public-key] (:whisper-public-key account-data)) (assoc-in [:hardwallet :multiaccount-whisper-public-key] (:whisper-public-key account-data))
(assoc-in [:hardwallet :application-info :key-uid] (:key-uid account-data)) (assoc-in [:hardwallet :application-info :key-uid]
(ethereum/normalized-hex (:key-uid account-data)))
(update :hardwallet dissoc :recovery-phrase) (update :hardwallet dissoc :recovery-phrase)
(update-in [:hardwallet :secrets] dissoc :pin :puk :password) (update-in [:hardwallet :secrets] dissoc :pin :puk :password)
(assoc :multiaccounts/new-installation-id (random-guid-generator)) (assoc :multiaccounts/new-installation-id (random-guid-generator))