Skip to content

Conversation

@tinchoabbate
Copy link
Contributor

#3589 introduced new unsafeAccess functions in the Arrays library to read dynamic arrays data skipping Solidity's safety checks.

This PR adds some comments to explain the purpose of the assembly in those functions.

@Amxx
Copy link
Collaborator

Amxx commented Sep 22, 2022

Hello @tinchoabbate and thank you for this PR.

I'm wondering if we should link to 0.8.17 or to the latest version
https://docs.soliditylang.org/en/latest/internals/layout_in_storage.html#mappings-and-dynamic-arrays

@frangio any opinion ?

@tinchoabbate
Copy link
Contributor Author

I usually prefer linking to a specific version, because that's exactly what I read while reviewing the contract, and I know the content linked won't change.

@frangio
Copy link
Contributor

frangio commented Sep 23, 2022

Agree with using a link to a fixed version.

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.

Thank you!

@frangio frangio merged commit 561d0ee into OpenZeppelin:master Sep 23, 2022
JulissaDantes pushed a commit to JulissaDantes/openzeppelin-contracts that referenced this pull request Nov 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants