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

chore(rpc): don't recover sender if we have it #11645

Merged
merged 1 commit into from
Oct 10, 2024
Merged

chore(rpc): don't recover sender if we have it #11645

merged 1 commit into from
Oct 10, 2024

Conversation

joshieDo
Copy link
Collaborator

No description provided.

@joshieDo joshieDo added C-debt Refactor of code section that is hard to understand or maintain A-rpc Related to the RPC implementation labels Oct 10, 2024
@joshieDo joshieDo added this pull request to the merge queue Oct 10, 2024
signed_tx.into_ecrecovered().ok_or(EthApiError::InvalidTransactionSignature)?;

let pool_transaction = <<Self as LoadTransaction>::Pool as TransactionPool>::Transaction::try_from_consensus(recovered.into()).map_err(|_| EthApiError::TransactionConversionError)?;
let pool_transaction = <<Self as LoadTransaction>::Pool as TransactionPool>::Transaction::try_from_consensus(transaction.into()).map_err(|_| EthApiError::TransactionConversionError)?;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
let pool_transaction = <<Self as LoadTransaction>::Pool as TransactionPool>::Transaction::try_from_consensus(transaction.into()).map_err(|_| EthApiError::TransactionConversionError)?;
let pool_transaction = <Self::Pool as TransactionPool>::Transaction::try_from_consensus(transaction.into()).map_err(|_| EthApiError::TransactionConversionError)?;

wouldn't that work?

Merged via the queue into main with commit 1d2c6d5 Oct 10, 2024
40 checks passed
@joshieDo joshieDo deleted the joshie/rec branch October 10, 2024 15:57
vandenbogart pushed a commit to testmachine-ai/reth that referenced this pull request Oct 14, 2024
reymom pushed a commit to reymom/reth that referenced this pull request Oct 15, 2024
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 C-debt Refactor of code section that is hard to understand or maintain
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants