Remove old code which is not used anymore
Signed-off-by: Goran Jovic <goranjovic@gmail.com>
This commit is contained in:
parent
d276d576a6
commit
9df15ffc78
|
@ -59,15 +59,6 @@
|
|||
:ETH (send-ethers params)
|
||||
(send-tokens params))))
|
||||
|
||||
(re-frame/reg-fx
|
||||
::show-transaction-moved
|
||||
(fn [modal?]
|
||||
(utils/show-popup
|
||||
(i18n/label :t/transaction-moved-title)
|
||||
(i18n/label :t/transaction-moved-text)
|
||||
(when modal?
|
||||
#(re-frame/dispatch [:navigate-back])))))
|
||||
|
||||
(re-frame/reg-fx
|
||||
::show-transaction-error
|
||||
(fn [message]
|
||||
|
@ -160,11 +151,6 @@
|
|||
(let [result (types/json->clj raw-results)]
|
||||
(dispatch-transaction-completed result)))
|
||||
|
||||
(handlers/register-handler-fx
|
||||
:sign-later-from-chat
|
||||
(fn [_ _]
|
||||
{::show-transaction-moved true}))
|
||||
|
||||
(defn prepare-transaction [{:keys [id message_id method args]} now]
|
||||
;;NOTE(goranjovic): the transactions started from chat using /send command
|
||||
;; are only in ether, so this parameter defaults to ETH
|
||||
|
@ -194,7 +180,6 @@
|
|||
|
||||
(handlers/register-handler-fx
|
||||
:check-transactions-queue
|
||||
[(re-frame/inject-cofx :now)]
|
||||
(fn [{:keys [db now]} _]
|
||||
(let [{:keys [send-transaction transactions-queue]} (:wallet db)
|
||||
{:keys [id method args] :as queued-transaction} (last transactions-queue)
|
||||
|
|
|
@ -75,12 +75,6 @@
|
|||
send-transaction)
|
||||
edit)))
|
||||
|
||||
(defn sign-enabled? [amount-error to amount]
|
||||
(and
|
||||
(nil? amount-error)
|
||||
(not (nil? to)) (not= to "")
|
||||
(not (nil? amount)) (not= amount "")))
|
||||
|
||||
(re-frame/reg-sub :wallet.send/transaction
|
||||
:<- [::send-transaction]
|
||||
:<- [:balance]
|
||||
|
|
Loading…
Reference in New Issue