remove overwritten events and subs
Signed-off-by: yenda <eric@status.im>
This commit is contained in:
parent
ecb71645c2
commit
0e25aa2f2a
|
@ -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]
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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 #()}})
|
||||
|
|
Loading…
Reference in New Issue