From abe6e977282392ec8739f9693f4673e259280e1e Mon Sep 17 00:00:00 2001 From: andrey Date: Thu, 24 Sep 2020 13:49:26 +0200 Subject: [PATCH] override custom tokens Signed-off-by: andrey --- src/status_im/wallet/core.cljs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/status_im/wallet/core.cljs b/src/status_im/wallet/core.cljs index ff5b08b9fd..b1c0ea8ced 100644 --- a/src/status_im/wallet/core.cljs +++ b/src/status_im/wallet/core.cljs @@ -203,7 +203,8 @@ (let [all-default-tokens (get tokens/all-default-tokens (ethereum/chain-keyword db)) default-tokens (utils.core/index-by :address all-default-tokens) - all-tokens (merge default-tokens (rpc->token custom-tokens))] + ;;we want to override custom-tokens by default + all-tokens (merge (rpc->token custom-tokens) default-tokens)] (merge {:db (assoc db :wallet/all-tokens all-tokens)} (when config/erc20-contract-warnings-enabled?