[#13070] No wallet is shown when switching on BSC network

Signed-off-by: andrey <motor4ik@gmail.com>
This commit is contained in:
andrey 2022-02-03 12:57:38 +01:00
parent c1a338c2dd
commit 8ed9accbeb
No known key found for this signature in database
GPG Key ID: 89B67245FD2F0272
1 changed files with 2 additions and 2 deletions

View File

@ -267,11 +267,11 @@
:on-success resolve :on-success resolve
:on-error reject}))) :on-error reject})))
(js/Promise. (js/Promise.
(fn [resolve reject] (fn [resolve _]
(json-rpc/call {:method "wallet_getTokens" (json-rpc/call {:method "wallet_getTokens"
:params [(int network-id)] :params [(int network-id)]
:on-success resolve :on-success resolve
:on-error reject}))) :on-error #(resolve nil)})))
(js/Promise. (js/Promise.
(fn [resolve reject] (fn [resolve reject]
(json-rpc/call {:method "wallet_getCustomTokens" (json-rpc/call {:method "wallet_getCustomTokens"