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

added helper error enums for L1BlockInfoError #14326

Merged
merged 3 commits into from
Feb 9, 2025

Conversation

PoulavBhowmick03
Copy link
Contributor

@PoulavBhowmick03 PoulavBhowmick03 commented Feb 8, 2025

Fixes #14274

  • Modified crates/optimism/evm/src/error.rs to add helper error enums and modified L1BlockInfo to pass in the L1BlockInfoError enum
  • Modified crates/optimism/evm/src/l1.rs to implement this change and use the new helper error enums

PS-

  • had to modify some typos at crates/net/network/src/peers.rs and crates/net/network/src/test_utils/testnet.rs, since it popped up while running make pr

@emhane emhane added C-debt A clean up/refactor of existing code A-op-reth Related to Optimism and op-reth labels Feb 8, 2025
Copy link
Member

@emhane emhane left a comment

Choose a reason for hiding this comment

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

very nice!

one comment, variant for BaseFeeScalarConversion is missing. l1_fee_scalar and l1_base_fee_scalar are essentially different values. see the nice docs here:
https://github.com/alloy-rs/op-alloy/blob/d1f9aa5b8111286b5340aa793315b6895e05b258/crates/rpc-types/src/receipt.rs#L136-L190

Copy link
Member

@emhane emhane left a comment

Choose a reason for hiding this comment

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

lgtm

@emhane emhane added this pull request to the merge queue Feb 9, 2025
Merged via the queue into paradigmxyz:main with commit 21370c3 Feb 9, 2025
44 checks passed
@PoulavBhowmick03 PoulavBhowmick03 deleted the helper_error_l1block branch February 10, 2025 04:18
18aaddy pushed a commit to 18aaddy/reth that referenced this pull request Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-op-reth Related to Optimism and op-reth C-debt A clean up/refactor of existing code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

introduce helper error for L1BlockInfoError
2 participants