Respect status-go API changes for collectibles request (#17857)

This commit is contained in:
Volodymyr Kozieiev 2023-11-08 18:01:33 +00:00 committed by GitHub
parent 4eda8bb6b3
commit e573fc914a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 5 deletions

View File

@ -201,11 +201,14 @@
(rf/reg-event-fx :wallet/request-collectibles
(fn [{:keys [db]} [{:keys [start-at-index new-request?]}]]
(let [request-params [0
[(chain/chain-id db)]
(map :address (:profile/wallet-accounts db))
start-at-index
collectibles-request-batch-size]]
(let [request-id 0
collectibles-filter nil
request-params [request-id
[(chain/chain-id db)]
(map :address (:profile/wallet-accounts db))
collectibles-filter
start-at-index
collectibles-request-batch-size]]
{:json-rpc/call [{:method "wallet_filterOwnedCollectiblesAsync"
:params request-params
:on-success #()