override custom tokens

Signed-off-by: andrey <motor4ik@gmail.com>
This commit is contained in:
andrey 2020-09-24 13:49:26 +02:00
parent 6940adf1cb
commit abe6e97728
No known key found for this signature in database
GPG Key ID: 89B67245FD2F0272
1 changed files with 2 additions and 1 deletions

View File

@ -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?