Skip to content

add RLP cheats #11232

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

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft

add RLP cheats #11232

wants to merge 3 commits into from

Conversation

qiweiii
Copy link
Contributor

@qiweiii qiweiii commented Aug 7, 2025

Motivation

Add rlp related cheats as requested in the issue #11144

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

Comment on lines +2950 to +2955
/// RLP encodes a list of bytes into an RLP payload.
#[cheatcode(group = Utilities)]
function toRlp(bytes[] calldata data) external pure returns (bytes memory);
/// RLP decodes an RLP payload into a list of bytes.
#[cheatcode(group = Utilities)]
function fromRlp(bytes calldata rlp) external pure returns (bytes[] memory data);
Copy link
Member

Choose a reason for hiding this comment

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

unsure how useful this really is because this can only bytes

but imo these dont really hurt

any opinions here @grandizzy

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think is good for a start and then we could improve, @qiweiii wonder though why it is marked as breaking change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

you mean in pr checklist? It should not, I just removed it

@DaniPopes DaniPopes marked this pull request as draft August 12, 2025 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

3 participants