feat: remove transaction_to_call_request helper fn (#14089)

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
DevOrbitlabs
2025-01-31 19:51:16 +07:00
committed by GitHub
parent 5322877aed
commit 54a5fcc24d
3 changed files with 7 additions and 13 deletions

View File

@@ -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)
}