polkadot-js / api

Promise and RxJS APIs around Polkadot and Substrate based chains via RPC calls. It is dynamically generated based on what the Substrate runtime provides in terms of metadata.
Apache License 2.0
1.07k stars 349 forks source link

Fix claimedRewards in staking.derives #5870

Closed TarikGul closed 4 months ago

TarikGul commented 4 months ago

This PR focuses on fixing the regression that was introduced to api.derive.staking.queryMulti in https://github.com/polkadot-js/api/pull/5862.

Instead of creating thousands of subscriptions to get all the info we need we simple receive all the entries and transform the data to fit the existing structure.

Thanks to @josepot for the help and inspiration.

TarikGul commented 4 months ago

closes: https://github.com/polkadot-js/api/pull/5870

polkadot-js-bot commented 4 months ago

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.