Skip to content

retrieve n addresses starting from next unused index #36

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

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

xsats
Copy link
Contributor

@xsats xsats commented Sep 21, 2022

No description provided.

Copy link
Member

@tanx tanx left a comment

Choose a reason for hiding this comment

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

Made one comment. Also looks like the package-lock.json is conflicting after merging the other PR to the master.

return nextFreeAddresses;
}
// return object: [{ index: "", address: ""}, ...]

Copy link
Member

Choose a reason for hiding this comment

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

How is this different from async getAddressAsync() right above it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This function returns n addresses starting from the next unused address retrieved by getAddressAsync(). I suppose the looping could just happen on the app side but I think it's a useful minor addition to the library.

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