mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-08 03:01:12 -04:00
feat: remove transaction_to_call_request helper fn (#14089)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@@ -50,11 +50,3 @@ pub trait TransactionCompat<T = TransactionSigned>:
|
||||
// <https://github.com/alloy-rs/alloy/issues/1315>.
|
||||
fn otterscan_api_truncate_input(tx: &mut Self::Transaction);
|
||||
}
|
||||
|
||||
/// Convert [`Recovered`] to [`TransactionRequest`]
|
||||
pub fn transaction_to_call_request<T: alloy_consensus::Transaction>(
|
||||
tx: Recovered<T>,
|
||||
) -> TransactionRequest {
|
||||
let from = tx.signer();
|
||||
TransactionRequest::from_transaction_with_sender(tx.into_tx(), from)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user