Refresh token balances after adding custom token
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
This commit is contained in:
parent
3b65fddb2f
commit
31f7b09a7b
|
@ -334,7 +334,9 @@
|
|||
(let [chain (ethereum/chain-keyword db)
|
||||
settings (update-toggle-in-settings cofx symbol true)
|
||||
new-settings (assoc-in settings [:wallet :custom-tokens chain address] token)]
|
||||
(multiaccounts.update/update-settings cofx new-settings {})))
|
||||
(fx/merge cofx
|
||||
(multiaccounts.update/update-settings cofx new-settings {})
|
||||
(update-balances nil))))
|
||||
|
||||
(fx/defn remove-custom-token
|
||||
[{:keys [db] :as cofx} {:keys [symbol address]}]
|
||||
|
|
Loading…
Reference in New Issue