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

feat: unify recover fn result type #13897

Merged
merged 12 commits into from
Jan 22, 2025
Merged

Conversation

hoank101
Copy link
Contributor

Closes #13893

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.

this looks more invasive than expected.

why do we need to change a lot of existing functions?
this pr should only change the return type from option to result

crates/primitives-traits/src/block/recovered.rs Outdated Show resolved Hide resolved
crates/primitives-traits/src/block/sealed.rs Outdated Show resolved Hide resolved
@hoank101 hoank101 marked this pull request as ready for review January 21, 2025 16:36
@hoank101 hoank101 requested a review from mattsse January 21, 2025 16:36
@hoank101 hoank101 marked this pull request as draft January 21, 2025 16:42
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.

cool, this is on track

a few more nits and suggestions

crates/ethereum/primitives/src/transaction.rs Outdated Show resolved Hide resolved
crates/optimism/primitives/src/transaction/signed.rs Outdated Show resolved Hide resolved
crates/primitives-traits/src/block/mod.rs Outdated Show resolved Hide resolved
crates/primitives-traits/src/crypto.rs Outdated Show resolved Hide resolved
crates/primitives-traits/src/transaction/signed.rs Outdated Show resolved Hide resolved
crates/primitives-traits/src/transaction/signed.rs Outdated Show resolved Hide resolved
crates/rpc/rpc-eth-types/src/receipt.rs Outdated Show resolved Hide resolved
crates/rpc/rpc/src/debug.rs Outdated Show resolved Hide resolved
crates/storage/provider/src/providers/database/provider.rs Outdated Show resolved Hide resolved
@mattsse mattsse marked this pull request as ready for review January 21, 2025 23:13
@mattsse mattsse added the A-sdk Related to reth's use as a library label Jan 21, 2025
@hoank101 hoank101 requested a review from mattsse January 22, 2025 13:01
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.

last q

crates/primitives-traits/src/block/mod.rs Outdated Show resolved Hide resolved
@hoank101
Copy link
Contributor Author

thank @mattsse for review, i just updated

@hoank101 hoank101 requested a review from mattsse January 22, 2025 13:46
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, tysm!

# Conflicts:
#	crates/storage/errors/src/provider.rs
@mattsse mattsse added this pull request to the merge queue Jan 22, 2025
Merged via the queue into paradigmxyz:main with commit 926ad2a Jan 22, 2025
43 checks passed
refcell pushed a commit to ethereum-optimism/op-reth that referenced this pull request Jan 24, 2025
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unify recover fn result type
2 participants