Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added from<alloy_rpc_types_eth::Transaction> for TransactionSigned #14350

Conversation

PoulavBhowmick03
Copy link
Contributor

Fixes #14349

Copy link
Collaborator

@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.

ty,

two suggestions

Comment on lines 47 to 48
where
T: Into<AnyTxEnvelope>,
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think I miscommunicated this in the issue we want

Suggested change
where
T: Into<AnyTxEnvelope>,
where
T: Into<TransactionSigned>,

here so that the impl just becomes tx.inner.into() and tx.inner.try_into()

we want both a From and a TryFrom impl

Copy link
Collaborator

@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.

lgtm, turns out we only need the from impl

@mattsse mattsse enabled auto-merge February 10, 2025 16:58
@mattsse mattsse added the A-rpc Related to the RPC implementation label Feb 10, 2025
@mattsse mattsse added this pull request to the merge queue Feb 10, 2025
Merged via the queue into paradigmxyz:main with commit cdb7c63 Feb 10, 2025
44 checks passed
18aaddy pushed a commit to 18aaddy/reth that referenced this pull request Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-rpc Related to the RPC implementation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add from<alloy_rpc_types_eth::Transaction> for TransactionSigned
2 participants