[#8729] iOS crashes on personal_sign

Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
This commit is contained in:
Andrey Shovkoplyas 2019-08-19 10:43:46 +03:00
parent 5db9080990
commit b67eda9bc3
No known key found for this signature in database
GPG Key ID: EAAB7C8622D860A4
1 changed files with 6 additions and 5 deletions

View File

@ -295,11 +295,12 @@
"NOTE (andrey) we need this function, because params may be mixed up" "NOTE (andrey) we need this function, because params may be mixed up"
[params] [params]
(let [[first-param second-param] params] (let [[first-param second-param] params]
(cond (when (and (string? first-param) (string? second-param))
(ethereum/address? first-param) (cond
[first-param second-param] (ethereum/address? first-param)
(ethereum/address? second-param) [first-param second-param]
[second-param first-param]))) (ethereum/address? second-param)
[second-param first-param]))))
(fx/defn web3-send-async (fx/defn web3-send-async
[cofx {:keys [method params id] :as payload} message-id] [cofx {:keys [method params id] :as payload} message-id]