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

The list decoding of 0xc0c000880000000000000000 returns is 3 long list #27

Open
Flydexo opened this issue Jun 11, 2023 · 0 comments
Open

Comments

@Flydexo
Copy link

Flydexo commented Jun 11, 2023

The following code

bytes memory data = hex"c0c000880000000000000000";
RLPReader.RLPItem memory RLPData = RLPReader.toRlpItem(data);
RLPReader.RLPItem[] memory arguments = RLPReader.toList(RLPData);

Does not revert where it should because this is not RLP at all, it starts with a list with 0 length and then continues with another 0 length list as all other RLP implementations (JS, python, rust and web revert)

And more wierdly it returns a 3 length list

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

No branches or pull requests

1 participant