Skip to content
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

Implement proper paging of results #18

Merged
merged 5 commits into from
Nov 2, 2022
Merged

Implement proper paging of results #18

merged 5 commits into from
Nov 2, 2022

Conversation

the-masthead
Copy link
Contributor

No description provided.

This prepares for adding more signers such as multisig and hex raw.
Base automatically changed from quality-stuff to main November 2, 2022 17:43
console.log(normalizeRecords(records));
const blockTag = await provider.getBlockNumber();
const results: Result[] = await getAll(flags.page, async (i, n) => {
return await nodes.getNodes(operatorId, flags.topology, i, n, { blockTag });
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I don't think you need this await

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI correct - it's not required, just more explicit

const owner = normalizeHex(flags.owner);
const blockTag = await provider.getBlockNumber();
let results: Result[] = await getAll(flags.page, async (i, n) => {
return await projects.getProjects(i, n, { blockTag });
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto await

@the-masthead the-masthead merged commit 18b2abb into main Nov 2, 2022
@the-masthead the-masthead deleted the paging branch November 2, 2022 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants