-
Notifications
You must be signed in to change notification settings - Fork 2
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
Conversation
This prepares for adding more signers such as multisig and hex raw.
Add flag for signer method
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 }); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto await
No description provided.