mirror of
https://github.com/status-im/status-mobile.git
synced 2025-02-27 07:41:11 +00:00
use the currently selected account for signing messages/typed data
Signed-off-by: Michele Balistreri <michele@bitgamma.com>
This commit is contained in:
parent
f3c85c1e7a
commit
09ac3e6a9e
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user