Skip to content

Commit

Permalink
Renamed indices to index for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Sozin committed Jun 28, 2024
1 parent 25357bd commit a213efe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/provider/src/ext/trace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ where
async fn trace_get(
&self,
hash: TxHash,
indices: u64,
index: u64,
) -> TransportResult<LocalizedTransactionTrace>;

/// Trace the given raw transaction.
Expand Down Expand Up @@ -129,10 +129,10 @@ where
async fn trace_get(
&self,
hash: TxHash,
indices: u64,
index: u64,
) -> TransportResult<LocalizedTransactionTrace> {
// We are using vec![indices] because API accepts a list, but in fact works only if list.len == 1
self.client().request("trace_get", (hash, vec![indices])).await
self.client().request("trace_get", (hash, vec![index])).await
}

async fn trace_raw_transaction(
Expand Down

0 comments on commit a213efe

Please sign in to comment.