bug #5155 - fixed the bug where every token is unknown in send command
Signed-off-by: Goran Jovic <goranjovic@gmail.com>
This commit is contained in:
parent
f8c9bec383
commit
e9fcba001a
|
@ -15,8 +15,8 @@
|
||||||
;; because balances are only fetched for them. Revisit this decision with regard to battery/network consequences
|
;; because balances are only fetched for them. Revisit this decision with regard to battery/network consequences
|
||||||
;; if we were to update all balances.
|
;; if we were to update all balances.
|
||||||
(defn- allowed-assets [chain account]
|
(defn- allowed-assets [chain account]
|
||||||
(let [visible-token-symbols (get-in account [:settings :wallet :visible-tokens chain])]
|
(let [visible-token-symbols (get-in account [:settings :wallet :visible-tokens (keyword chain)])]
|
||||||
(->> (tokens/tokens-for chain)
|
(->> (tokens/tokens-for (keyword chain))
|
||||||
(filter #(not (:nft? %)))
|
(filter #(not (:nft? %)))
|
||||||
(filter #(contains? visible-token-symbols (:symbol %)))
|
(filter #(contains? visible-token-symbols (:symbol %)))
|
||||||
(map #(vector (-> % :symbol clojure.core/name)
|
(map #(vector (-> % :symbol clojure.core/name)
|
||||||
|
|
Loading…
Reference in New Issue