Skip to content

Conversation

@fusmanii
Copy link
Contributor

No description provided.

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>
Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>

// The following 4 functions are copied from solidity-bytes-utils library
// https://github.com/GNSPS/solidity-bytes-utils/blob/fc502455bb2a7e26a743378df042612dd50d1eb9/contracts/BytesLib.sol#L323C5-L398C6
// Code was copied, and slightly modified to use revert instead of require
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't we want to just include unmodified versions?
Or is the thinking that those were not audited anyway so there's no difference?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah that was my thinking, since its not audited might as well improve on error handling

@fusmanii fusmanii merged commit bd3c77a into audit-oct-20 Oct 23, 2025
8 of 10 checks passed
@fusmanii fusmanii deleted the faisal/move-bytes-lib-to-external branch October 23, 2025 00:35
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.

4 participants