Skip to content
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

Replace some uses of abi.encodePacked with more explicit alternatives #4296

Merged
merged 3 commits into from
Jun 14, 2023

Conversation

Amxx
Copy link
Collaborator

@Amxx Amxx commented Jun 1, 2023

Some occurences of abi.encodePacked were purposefully left:

  • when its part of a "vendored" contracted that we use for testing
  • when the different blocks being encoded have various types (string+bytes+...)

PR Checklist

  • Tests
  • Documentation
  • Changeset entry (run npx changeset add)

@changeset-bot
Copy link

changeset-bot bot commented Jun 1, 2023

🦋 Changeset detected

Latest commit: d23dfff

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
openzeppelin-solidity Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@Amxx Amxx requested a review from frangio June 1, 2023 11:54
@Amxx Amxx requested a review from ernestognw June 13, 2023 20:21
frangio
frangio previously approved these changes Jun 14, 2023
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.

Very nice thanks!

Co-authored-by: Francisco <fg@frang.io>
@Amxx Amxx enabled auto-merge (squash) June 14, 2023 14:01
Copy link
Member

@ernestognw ernestognw left a comment

Choose a reason for hiding this comment

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

LGTM.

Side note but we might want to update the recommendation we're making for Base64 in the Utilities page

@Amxx Amxx disabled auto-merge June 14, 2023 19:11
@Amxx Amxx merged commit ef103f3 into OpenZeppelin:master Jun 14, 2023
@Amxx Amxx deleted the improve/encoding branch June 14, 2023 19:11
This was referenced Sep 10, 2024
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.

3 participants