mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-14 02:35:54 +00:00
[#5621] Sign in is not working in Superrare dapp
Signed-off-by: Igor Mandrigin <i@mandrigin.ru>
This commit is contained in:
parent
70fe1e58f7
commit
e7a8dfc629
@ -118,7 +118,7 @@
|
|||||||
(fn [{:keys [db]} _]
|
(fn [{:keys [db]} _]
|
||||||
(let [{:keys [send-transaction transactions-queue]} (:wallet db)
|
(let [{:keys [send-transaction transactions-queue]} (:wallet db)
|
||||||
{:keys [payload message-id] :as queued-transaction} (last transactions-queue)
|
{:keys [payload message-id] :as queued-transaction} (last transactions-queue)
|
||||||
{:keys [method params]} payload
|
{:keys [method params id]} payload
|
||||||
db' (update-in db [:wallet :transactions-queue] drop-last)]
|
db' (update-in db [:wallet :transactions-queue] drop-last)]
|
||||||
(when (and (not (:id send-transaction)) queued-transaction)
|
(when (and (not (:id send-transaction)) queued-transaction)
|
||||||
(cond
|
(cond
|
||||||
@ -142,7 +142,7 @@
|
|||||||
(= method constants/web3-personal-sign)
|
(= method constants/web3-personal-sign)
|
||||||
(let [[address data] (models.wallet/normalize-sign-message-params params)]
|
(let [[address data] (models.wallet/normalize-sign-message-params params)]
|
||||||
(if (and address data)
|
(if (and address data)
|
||||||
{:db (assoc-in db' [:wallet :send-transaction] {:id (str message-id)
|
{:db (assoc-in db' [:wallet :send-transaction] {:id (str (or id message-id))
|
||||||
:from address
|
:from address
|
||||||
:data data
|
:data data
|
||||||
:dapp-transaction queued-transaction
|
:dapp-transaction queued-transaction
|
||||||
|
Loading…
x
Reference in New Issue
Block a user