Remove standalone from_recovered functions and make part of TransactionCompat trait #13641
Labels
A-rpc
Related to the RPC implementation
C-enhancement
New feature or request
D-good-first-issue
Nice and easy! A great choice to get started
Describe the feature
reth/crates/rpc/rpc-types-compat/src/transaction.rs
Lines 15 to 30 in 9b44e2a
from_recovered
already just delegates to:reth/crates/rpc/rpc-types-compat/src/transaction.rs
Lines 50 to 54 in 9b44e2a
and can easily be removed.
the other one should be introduced as
TransactionCompat::fill_pending
as a helperTODO
TransactionCompat::fill_pending
from_recovered(transaction, self.tx_resp_builder()
toself.tx_resp_builder().fill_pending(transaction)
for exampleAdditional context
No response
The text was updated successfully, but these errors were encountered: