Skip to content

Remove Arrays library usage from EnumerableSetExtended #122

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

Merged
merged 4 commits into from
Apr 25, 2025

Conversation

ernestognw
Copy link
Member

Description

Unfortunately, OpenZeppelin/openzeppelin-contracts@8a4eade didn't make it into the 5.3.0 release, which makes available some changes needed for the EnumerableSetExtended library. Concretely, the unsafeSetLength functions are not available to users.

As a result, OpenZeppelin/contracts-wizard#527 do not compile. This PR addresses the issue by temporarily porting the missing features in 5.3.0

@ernestognw ernestognw marked this pull request as ready for review April 25, 2025 19:25
@ernestognw ernestognw requested a review from a team as a code owner April 25, 2025 19:25
@ernestognw ernestognw requested a review from arr00 April 25, 2025 19:27
@arr00
Copy link
Collaborator

arr00 commented Apr 25, 2025

Given that each function is called just once, does it not make sense to inline the assembly?

@ernestognw
Copy link
Member Author

Given that each function is called just once, does it not make sense to inline the assembly?

Yeah that makes sense. Updated

@ernestognw ernestognw requested a review from arr00 April 25, 2025 19:40
@ernestognw ernestognw merged commit fb8a5e6 into master Apr 25, 2025
11 checks passed
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