[#5621] Sign in is not working in Superrare dapp

Signed-off-by: Igor Mandrigin <i@mandrigin.ru>
This commit is contained in:
Andrey Shovkoplyas 2018-08-23 17:57:03 +03:00 committed by Igor Mandrigin
parent 70fe1e58f7
commit e7a8dfc629
No known key found for this signature in database
GPG Key ID: 4A0EDDE26E66BC8B
1 changed files with 2 additions and 2 deletions

View File

@ -118,7 +118,7 @@
(fn [{:keys [db]} _]
(let [{:keys [send-transaction transactions-queue]} (:wallet db)
{: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)]
(when (and (not (:id send-transaction)) queued-transaction)
(cond
@ -142,7 +142,7 @@
(= method constants/web3-personal-sign)
(let [[address data] (models.wallet/normalize-sign-message-params params)]
(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
:data data
:dapp-transaction queued-transaction