fix(tx-submitter): align CancelTx blob sidecar version with ReSubmitTx - #1055
fix(tx-submitter): align CancelTx blob sidecar version with ReSubmitTx#1055crazywriter1 wants to merge 2 commits into
Conversation
Extract buildCancelBlobSidecar helper using DetermineBlobVersion + cell proofs for Osaka (v1). Add nil blobFeeCap guard. Test v0/v1 in isolated unit test instead of fragile mock-L1 integration block.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughBlob cancellation now builds an empty sidecar for the active blob version. ChangesBlob cancellation
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to The change aligns cancellation sidecars with the active protocol version while preserving the existing signing and submission flow. No actionable merge-blocking risk remains after normal checks and review. Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Warning Billing warning: we have not been able to collect payment for this subscription for more than 72 hours. Please update the payment method or pay any pending invoices in Billing to avoid service interruption. 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 |
|
@coderabbitai re-review |
|
✅ Action performedReview finished.
|
Summary
CancelTxbuilt blob sidecars with v0 KZG proofs only (ComputeBlobProof), whileReSubmitTxandcreateBlobTxuseDetermineBlobVersionand v1 cell proofs after the Osaka fork. Cancelling a blob tx on post-Osaka L1 could therefore produce an invalid sidecar.This PR aligns
CancelTxwith the same blob-version selection path.Changes
buildCancelBlobSidecar(head, chainID)helper shared byCancelTxblob.DetermineBlobVersionto choose v0 (KZG proof) vs v1 (cell proofs viaMakeCellProof)GetGasTipAndCap()into sidecar constructionblobFeeCapwhen cancelling non-blob txs in the same code pathTestBuildCancelBlobSidecarVersionwith explicit pre-Osaka and Osaka headers (isolated unit test, no mock L1 dependency)Testing
All tests pass locally.
Summary by CodeRabbit