refactor(primitives): remove batch_hash from morph header#31
Conversation
Remove the `batch_hash` field from `MorphHeader` as it is no longer necessary and increases maintenance complexity. Changes: - Remove `batch_hash` field from `MorphHeader` struct - Remove `is_batch_point()` method - Remove `batch_hash` parameter from `new_l2_block` API - Remove `batch_hash` from `SafeL2Data` struct - Remove `apply_batch_hash` function from engine-api builder - Update all related documentation and tests Closes #24
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review infoConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis PR removes the Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@crates/engine-api/src/builder.rs`:
- Line 371: Run rustfmt by executing `cargo fmt --all` to fix the formatting
drift; specifically ensure the long statement that assigns recovered_with_data
using apply_executable_data_overrides(executed.recovered_block().clone(),
&data)? is wrapped/formatted per rustfmt rules (so the call arguments and
trailing ? are properly line-broken), then re-run CI to confirm the lint blocker
is cleared.
ℹ️ Review info
Configuration used: defaults
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (9)
crates/engine-api/src/api.rscrates/engine-api/src/builder.rscrates/engine-api/src/rpc.rscrates/evm/src/assemble.rscrates/evm/src/engine.rscrates/evm/src/lib.rscrates/payload/builder/src/builder.rscrates/payload/types/src/safe_l2_data.rscrates/primitives/src/header.rs
💤 Files with no reviewable changes (2)
- crates/payload/builder/src/builder.rs
- crates/evm/src/engine.rs
* refactor(primitives): remove batch_hash from morph header Remove the `batch_hash` field from `MorphHeader` as it is no longer necessary and increases maintenance complexity. Changes: - Remove `batch_hash` field from `MorphHeader` struct - Remove `is_batch_point()` method - Remove `batch_hash` parameter from `new_l2_block` API - Remove `batch_hash` from `SafeL2Data` struct - Remove `apply_batch_hash` function from engine-api builder - Update all related documentation and tests Closes #24 * style: format code
Remove the
batch_hashfield fromMorphHeaderas it is no longer necessary and increases maintenance complexity.Changes:
batch_hashfield fromMorphHeaderstructis_batch_point()methodbatch_hashparameter fromnew_l2_blockAPIbatch_hashfromSafeL2Datastructapply_batch_hashfunction from engine-api builderCloses #24
Summary by CodeRabbit
Refactor
Documentation