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

Remove dependency on solidity-stringutils #91

Merged
merged 11 commits into from
Jan 27, 2025

Conversation

ericglau
Copy link
Member

  • Remove dependency on solidity-stringutils. Instead, uses a combination of OpenZeppelin's Strings library, Forge's string cheatcodes, and an internal library for additional string finder functions.
  • Sets the assembly block in Core._deployFromBytecode as /// @solidity memory-safe-assembly. This annotation is used instead of assembly ("memory-safe") so that it remains compatible with versions of Solidity used in both OpenZeppelin Contracts v4 and v5.

Fixes #89

@ericglau ericglau requested a review from a team January 14, 2025 23:03
src/internal/StringFinder.sol Outdated Show resolved Hide resolved
src/internal/StringFinder.sol Outdated Show resolved Hide resolved
Copy link

@Amxx Amxx left a comment

Choose a reason for hiding this comment

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

I'm thinking that there may be stuff from solidity-stringutils that we want to put in our String.sol

@ericglau ericglau requested a review from Amxx January 24, 2025 22:32
@ericglau ericglau merged commit cbce1e0 into OpenZeppelin:main Jan 27, 2025
4 checks passed
@ericglau ericglau deleted the removestringutils branch January 27, 2025 18:20
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.

solidity-stringutils dependency can cause problems with compilation
2 participants