Skip to content

feat(l2): implement calldata decode #3204

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Conversation

iovoid
Copy link
Contributor

@iovoid iovoid commented Jun 18, 2025

Motivation

We want to be able to decode ABI-packed data.

Description

This PR copies the implementation made for rex, with two slicing operations fixed to avoid panicking.

@iovoid iovoid requested a review from a team as a code owner June 18, 2025 13:31
Copy link

github-actions bot commented Jun 18, 2025

Lines of code report

Total lines added: 217
Total lines removed: 0
Total lines changed: 217

Detailed view
+--------------------------------------+-------+------+
| File                                 | Lines | Diff |
+--------------------------------------+-------+------+
| ethrex/crates/l2/sdk/src/calldata.rs | 582   | +217 |
+--------------------------------------+-------+------+

Copy link
Contributor

@tomip01 tomip01 left a comment

Choose a reason for hiding this comment

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

LGTM!

@jrchatruc jrchatruc enabled auto-merge June 19, 2025 20:18
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