Skip to content

Commit

Permalink
hide drawer after send address request
Browse files Browse the repository at this point in the history
  • Loading branch information
yenda committed Jan 8, 2020
1 parent d984602 commit 477b386
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/status_im/wallet/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,12 @@
[{:keys [db] :as cofx} {:keys [to amount from token request? from-chat? gas gasPrice]}]
(let [{:keys [symbol address]} token
to-norm (ethereum/normalized-hex (if (string? to) to (:address to)))
from-address (:address from)]
from-address (:address from)
identity (:current-chat-id db)]
(fx/merge cofx
{:db (dissoc db :wallet/prepare-transaction)
{:db (-> db
(update-in [:chat-ui-props identity] dissoc :input-bottom-sheet)
(dissoc :wallet/prepare-transaction))
;;TODO from chat, send request message or if ens name sign tx and send tx message
::json-rpc/call [{:method "shhext_requestAddressForTransaction"
:params [(:current-chat-id db)
Expand Down

0 comments on commit 477b386

Please sign in to comment.