diff --git a/src/status_im/ethereum/core.cljs b/src/status_im/ethereum/core.cljs index b2a56b4689..0f9907b415 100644 --- a/src/status_im/ethereum/core.cljs +++ b/src/status_im/ethereum/core.cljs @@ -153,8 +153,8 @@ (defn address= [address1 address2] (and address1 address2 - (= (normalized-hex address1) - (normalized-hex address2)))) + (= (string/lower-case (normalized-hex address1)) + (string/lower-case (normalized-hex address2))))) (defn public-key->address [public-key] (let [length (count public-key) diff --git a/src/status_im/keycard/sign.cljs b/src/status_im/keycard/sign.cljs index 5e0c0e7693..77de2f532a 100644 --- a/src/status_im/keycard/sign.cljs +++ b/src/status_im/keycard/sign.cljs @@ -24,7 +24,7 @@ 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) + (when (ethereum/address= from address) (reduced path))) nil (:multiaccount/accounts db))]