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

Return result from TransactionCompat::fill #12020

Closed
emhane opened this issue Oct 24, 2024 · 3 comments · Fixed by #12170
Closed

Return result from TransactionCompat::fill #12020

emhane opened this issue Oct 24, 2024 · 3 comments · Fixed by #12170
Assignees
Labels
A-sdk Related to reth's use as a library C-debt Refactor of code section that is hard to understand or maintain D-good-first-issue Nice and easy! A great choice to get started

Comments

@emhane
Copy link
Member

emhane commented Oct 24, 2024

Describe the feature

Add AT TransactionCompat::Error and change signature of TransactionCompat::fill to return a result wrapping TransactionCompat::Error in error variant.

/// Create a new rpc transaction result for a _pending_ signed transaction, setting block
/// environment related fields to `None`.
fn fill(&self, tx: TransactionSignedEcRecovered, tx_inf: TransactionInfo) -> Self::Transaction;

This error should then be propagated, instead of converting to option here

.ok() // todo: change sig to return result

Additional context

No response

@emhane emhane added the A-sdk Related to reth's use as a library label Oct 24, 2024
@emhane emhane added D-good-first-issue Nice and easy! A great choice to get started C-debt Refactor of code section that is hard to understand or maintain labels Oct 24, 2024
@Gerson2102
Copy link
Contributor

Hey can I work on it?

@Gerson2102
Copy link
Contributor

@emhane can you bring me some guidance here? I dont get where are you taking the TransactionCompat::fill there is nothing about that in the code. I dont get it.

@Gerson2102
Copy link
Contributor

There is the signature of the function. But I dont know what do you want me to do with that, maybe change what we are returning?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-sdk Related to reth's use as a library C-debt Refactor of code section that is hard to understand or maintain D-good-first-issue Nice and easy! A great choice to get started
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants