From b67eda9bc3148c229f774af92e4764dc78f8836f Mon Sep 17 00:00:00 2001 From: Andrey Shovkoplyas Date: Mon, 19 Aug 2019 10:43:46 +0300 Subject: [PATCH] [#8729] iOS crashes on personal_sign Signed-off-by: Andrey Shovkoplyas --- src/status_im/browser/core.cljs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/status_im/browser/core.cljs b/src/status_im/browser/core.cljs index 71948cacf7..62f7b005a4 100644 --- a/src/status_im/browser/core.cljs +++ b/src/status_im/browser/core.cljs @@ -295,11 +295,12 @@ "NOTE (andrey) we need this function, because params may be mixed up" [params] (let [[first-param second-param] params] - (cond - (ethereum/address? first-param) - [first-param second-param] - (ethereum/address? second-param) - [second-param first-param]))) + (when (and (string? first-param) (string? second-param)) + (cond + (ethereum/address? first-param) + [first-param second-param] + (ethereum/address? second-param) + [second-param first-param])))) (fx/defn web3-send-async [cofx {:keys [method params id] :as payload} message-id]