Skip to content

Conversation

DaniPopes
Copy link
Member

Make them faster and smaller in code size


impl_assertions! {
|left, right| assert_not_eq(
&left.iter().map(hex::encode_prefixed).collect::<Vec<_>>(),
Copy link
Member Author

Choose a reason for hiding this comment

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

these are now Bytes which do that by default in Display so we don't need to special case anymore

Make them faster and smaller in code size
@DaniPopes DaniPopes force-pushed the dani/cheat-assertions-cleanup branch from 2a10c8f to acc1496 Compare July 30, 2025 19:52
mattsse
mattsse previously approved these changes Jul 30, 2025
Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

nice, makes sense

@DaniPopes DaniPopes merged commit 4c41b1e into master Jul 30, 2025
22 checks passed
@DaniPopes DaniPopes deleted the dani/cheat-assertions-cleanup branch July 30, 2025 20:31
@github-project-automation github-project-automation bot moved this to Done in Foundry Jul 30, 2025
MerkleBoy pushed a commit to MerkleBoy/foundry that referenced this pull request Sep 17, 2025
* chore: clean up cheatcode assertions

Make them faster and smaller in code size

* invert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants