Skip to content

Conversation

@RomanHodulak
Copy link
Contributor

Motivation

While working on the custom_node example I intended to implement FromTxWithEncoded<CustomTransaction> for CustomTxEnv and the same with FromRecoveredTx. The approach I took was to redirect to FromTxWithEncoded<Inner> for TxEnv. This is, however, not implemented for TxEnv, but only for OpTransaction<TxEnv>

Solution

Extract impl FromTxWithEncoded<OpTxEnvelope> for TxEnv and FromRecoveredTx counterpart from impl FromTxWithEncoded<OpTxEnvelope> for OpTransaction<TxEnv>

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

I believe this makes sense and isn't problematic because this wouldn't be usable with op-evm anyway

pending @klkvr

Copy link
Member

@klkvr klkvr left a comment

Choose a reason for hiding this comment

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

makes sense to me

@klkvr klkvr merged commit 3831837 into main May 20, 2025
27 checks passed
@klkvr klkvr deleted the op-tx-env-impl branch May 20, 2025 17:58
nadtech-hub pushed a commit to nadtech-hub/evm that referenced this pull request Jun 3, 2025
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