Skip to content

Conversation

@mablr
Copy link
Contributor

@mablr mablr commented Nov 2, 2025

Motivation

Close #207

Solution

Added implementations of FromRecoveredTx and FromTxWithEncoded traits for TxEip1559, TxEip2930, TxEip4844, TxEip7702, and TxLegacy. Then updated OpTxEnvelope's one.

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

…TxEnv>`

Added implementations for FromRecoveredTx and FromTxWithEncoded traits for TxEip1559, TxEip2930, TxEip4844, TxEip7702, and TxLegacy.
Copy link
Contributor Author

@mablr mablr left a comment

Choose a reason for hiding this comment

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

CI fails due to clippy, this is fixed in #210.

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.

cool, almost there

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.

we need to change the FromRecoveredTx to Signed<...> instead

… for `Signed<>` types instead of raw types
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.

one more suggestions

…n types

- make signed tx type impls forward tx.tx() to raw type impls
@mablr mablr requested a review from mattsse November 4, 2025 13:12
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.

all of this lgtm

@klkvr klkvr merged commit 7da8f19 into alloy-rs:main Nov 6, 2025
27 checks passed
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.

[Feature] Add specializations for Signed types for OpTransaction<TxEnv>

3 participants