Skip to content

Commit

Permalink
feat: convert trace_call
Browse files Browse the repository at this point in the history
  • Loading branch information
prestwich committed May 4, 2024
1 parent 875be23 commit b5245de
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions crates/provider/src/provider/trait.rs
Original file line number Diff line number Diff line change
Expand Up @@ -773,13 +773,12 @@ pub trait Provider<T: Transport + Clone = BoxTransport, N: Network = Ethereum>:
/// # Note
///
/// Not all nodes support this call.
async fn trace_call(
fn trace_call<'a, 'b>(
&self,
request: &N::TransactionRequest,
trace_type: &[TraceType],
block: BlockId,
) -> TransportResult<TraceResults> {
self.client().request("trace_call", (request, trace_type, block)).await
request: &'a N::TransactionRequest,
trace_type: &'b [TraceType],
) -> RpcWithBlock<T, (&'a N::TransactionRequest, &'b [TraceType]), TraceResults> {
RpcWithBlock::new(self.weak_client(), "trace_call", (request, trace_type))
}

/// Traces multiple transactions on top of the same block, i.e. transaction `n` will be executed
Expand Down

0 comments on commit b5245de

Please sign in to comment.