remove overwritten events and subs

Signed-off-by: yenda <eric@status.im>
This commit is contained in:
yenda 2019-12-11 11:59:20 +01:00
parent ecb71645c2
commit 0e25aa2f2a
No known key found for this signature in database
GPG Key ID: 0095623C0069DCE6
3 changed files with 1 additions and 21 deletions

View File

@ -291,12 +291,6 @@
(fn [network]
(ethereum/network->chain-name network)))
(re-frame/reg-sub
:network-name
:<- [:current-network]
(fn [network]
(ethereum/network->network-name network)))
(re-frame/reg-sub
:chain-id
:<- [:current-network]

View File

@ -36,11 +36,6 @@
(fn [[pin puk]]
(if (zero? pin) puk pin)))
(re-frame/reg-sub
:hardwallet/puk-retry-counter
(fn [db]
(get-in db [:hardwallet :application-info :puk-retry-counter])))
(re-frame/reg-sub
:keycard-reset-card-disabled?
(fn [db]

View File

@ -350,15 +350,6 @@
[{:keys [db]} amount]
{:db (assoc-in db [:wallet/prepare-transaction :amount-text] amount)})
(fx/defn set-symbol
{:events [:wallet.send/set-symbol]}
[{:keys [db]} symbol]
{:db (-> db
(assoc-in [:wallet :send-transaction :symbol] symbol)
(assoc-in [:wallet :send-transaction :amount] nil)
(assoc-in [:wallet :send-transaction :amount-text] nil)
(assoc-in [:wallet :send-transaction :asset-error] nil))})
(fx/defn sign-transaction-button-clicked
{:events [:wallet.ui/sign-transaction-button-clicked]}
[{:keys [db] :as cofx} {:keys [to amount from token from-chat? gas gasPrice]}]
@ -457,4 +448,4 @@
:confirm-button-text (i18n/label :t/yes)
:cancel-button-text (i18n/label :t/no)
:on-accept #(re-frame/dispatch [:wallet.accounts/delete-account account])
:on-cancel #()}})
:on-cancel #()}})