Add reth_rpc_types::Transaction to reth_primitives::Transaction conversion util function #7214
Labels
C-enhancement
New feature or request
D-good-first-issue
Nice and easy! A great choice to get started
Describe the feature
Hi all!
Context
I've noticed that one can go from
reth_primitives::TransactionSignedEcRecovered
toreth_rpc_types:Transaction
with rpc-types-compat::from_recovered util.I'd like to have a util to go the opposite route, to the best of my knowledge it does not exist.
Proposed added code
In rpc-types-compat crate, add a util:
rpc_transaction_to_primitive
The above code is done for kakarot zkevm's rpc layer that heavily relies on reth types (thank you btw 🙏)
Can adapt API / Rework as this is a first /fast try.
Thanks!
Additional context
No response
The text was updated successfully, but these errors were encountered: