Skip to content

fix(op-revm): return error instead of panic when enveloped_tx is missing#3055

Merged
rakita merged 3 commits intobluealloy:mainfrom
sashass1315:fix/op-revm/unify-enveloped-tx-error-handling
Oct 7, 2025
Merged

fix(op-revm): return error instead of panic when enveloped_tx is missing#3055
rakita merged 3 commits intobluealloy:mainfrom
sashass1315:fix/op-revm/unify-enveloped-tx-error-handling

Conversation

@sashass1315
Copy link
Contributor

Replace expect() with a graceful error in validate_against_state_and_deduct_caller for non-deposit transactions when enveloped_tx is missing. This unifies behavior with reward_beneficiary, avoids process panics on malformed/external inputs (OpTxTr trait boundary), and aligns with the builder’s contract where missing enveloped bytes are a validation error, not an unreachable state.

@codspeed-hq
Copy link

codspeed-hq bot commented Oct 6, 2025

CodSpeed Performance Report

Merging #3055 will not alter performance

Comparing sashass1315:fix/op-revm/unify-enveloped-tx-error-handling (4260618) with main (f8ee6a2)

Summary

✅ 173 untouched

sashass1315 and others added 2 commits October 7, 2025 09:19
Co-authored-by: rakita <rakita@users.noreply.github.com>
@rakita rakita merged commit d4671a3 into bluealloy:main Oct 7, 2025
31 checks passed
@github-actions github-actions bot mentioned this pull request Oct 7, 2025
theochap pushed a commit to ethereum-optimism/optimism that referenced this pull request Jan 21, 2026
…ing (bluealloy/revm#3055)

* fix(op-revm): return error instead of panic when enveloped_tx is missing

* Update crates/op-revm/src/handler.rs

Co-authored-by: rakita <rakita@users.noreply.github.com>

* fmt

---------

Co-authored-by: rakita <rakita@users.noreply.github.com>
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.

2 participants