Skip to content

Conversation

@nventuro
Copy link
Contributor

@nventuro nventuro commented Feb 4, 2020

This PR adds the functions required for iterating large sets (length and get), where enumerate might fail due to out of gas errors, and removes newAddressSet, which it turns out wasn't necessary in the first place.

I'm not 100% sold on the names of the new functions, I also considered count instead of length.

This changes will go into the 2.5.0 release.

@nventuro nventuro requested a review from frangio February 4, 2020 21:10
Copy link
Contributor

@frangio frangio left a comment

Choose a reason for hiding this comment

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

LGTM!

@nventuro
Copy link
Contributor Author

nventuro commented Feb 4, 2020

Thanks!

@nventuro nventuro merged commit 7988c04 into OpenZeppelin:master Feb 4, 2020
@nventuro nventuro deleted the improved-set branch February 4, 2020 22:16
@nventuro nventuro mentioned this pull request Feb 4, 2020
nventuro added a commit that referenced this pull request Feb 4, 2020
* Remove newAddressSet

* Add count and get functions.

* Fix lint

(cherry picked from commit 7988c04)
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