-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Staking Async Feedback #11681
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Staking Async Feedback #11681
Conversation
…StakingApp components to use it
… to display active nominators
…route for Westend relay
I think you are still parsing the snapshot range wrong. It should have a value like:
This should always be the first and last item in this list: https://github.com/paritytech/polkadot-scripts/blob/51a99829460322be11379ea642f0642940604b1a/src/handlers.ts#L253C25-L254C15 |
Hi @kianenigma , I'm fetching it like this: const snapshotRange = (
await ahApi.query.multiBlockElection.pagedVoterSnapshotHash.entries()
)
.map(([k]) => k.args[0])
.sort();
console.log(snapshotRange.map((a) => a.toHuman())); and I am already rendering first and last item in list: const uniquePages = Array.from(new Set(snapshotRange.map((p) => Number(p.toString())))).sort((a, b) => a - b);
const [minPage, maxPage] = [uniquePages[0], uniquePages[uniquePages.length - 1]]; The script you provided seems to fetch it the same way. Could you please clarify what I might be doing wrong? |
I think it is likely because |
Updated it now (and attached image as well) |
Hi @kianenigma, When you have a moment, could you please provide your go-ahead so we can proceed with the review? |
📝 Description
This PR addresses the feedback outlined in this issue. Below is an overview of the updated changes.