use the currently selected account for signing messages/typed data

Signed-off-by: Michele Balistreri <michele@bitgamma.com>
This commit is contained in:
Michele Balistreri 2021-02-19 12:39:07 +03:00
parent f3c85c1e7a
commit 09ac3e6a9e
No known key found for this signature in database
GPG Key ID: E9567DA33A4F791A
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@
data (get-in db [:keycard :data]) data (get-in db [:keycard :data])
typed? (get-in db [:keycard :typed?]) typed? (get-in db [:keycard :typed?])
pin (common/vector->string (get-in db [:keycard :pin :sign])) pin (common/vector->string (get-in db [:keycard :pin :sign]))
from (get-in db [:signing/tx :from :address]) from (or (get-in db [:signing/tx :from :address]) (get-in db [:signing/tx :message :from]) (ethereum/default-address db))
path (reduce path (reduce
(fn [_ {:keys [address path]}] (fn [_ {:keys [address path]}]
(when (= from address) (when (= from address)