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 (rf/reg-event-fx :wallet/request-collectibles
(fn [{:keys [db]} [{:keys [start-at-index new-request?]}]] (fn [{:keys [db]} [{:keys [start-at-index new-request?]}]]
(let [request-params [0 (let [request-id 0
[(chain/chain-id db)] collectibles-filter nil
(map :address (:profile/wallet-accounts db)) request-params [request-id
start-at-index [(chain/chain-id db)]
collectibles-request-batch-size]] (map :address (:profile/wallet-accounts db))
collectibles-filter
start-at-index
collectibles-request-batch-size]]
{:json-rpc/call [{:method "wallet_filterOwnedCollectiblesAsync" {:json-rpc/call [{:method "wallet_filterOwnedCollectiblesAsync"
:params request-params :params request-params
:on-success #() :on-success #()