[#8729] iOS crashes on personal_sign
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
This commit is contained in:
parent
5db9080990
commit
b67eda9bc3
|
@ -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]
|
||||||
|
(when (and (string? first-param) (string? second-param))
|
||||||
(cond
|
(cond
|
||||||
(ethereum/address? first-param)
|
(ethereum/address? first-param)
|
||||||
[first-param second-param]
|
[first-param second-param]
|
||||||
(ethereum/address? second-param)
|
(ethereum/address? second-param)
|
||||||
[second-param first-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]
|
||||||
|
|
Loading…
Reference in New Issue