From 09ac3e6a9e37e19160c17bf65657263f109653c1 Mon Sep 17 00:00:00 2001 From: Michele Balistreri Date: Fri, 19 Feb 2021 12:39:07 +0300 Subject: [PATCH] use the currently selected account for signing messages/typed data Signed-off-by: Michele Balistreri --- src/status_im/keycard/sign.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/status_im/keycard/sign.cljs b/src/status_im/keycard/sign.cljs index de150c72a8..c97806aefa 100644 --- a/src/status_im/keycard/sign.cljs +++ b/src/status_im/keycard/sign.cljs @@ -21,7 +21,7 @@ data (get-in db [:keycard :data]) typed? (get-in db [:keycard :typed?]) 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 (fn [_ {:keys [address path]}] (when (= from address)