Skip to content

Commit

Permalink
chore(sidecar): clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
thedevbirb committed Jun 21, 2024
1 parent f3a3ab6 commit fbbb41a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bolt-sidecar/src/client/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ impl RpcClient {
pub async fn get_block(&self, block_number: Option<u64>, full: bool) -> TransportResult<Block> {
let tag = block_number.map_or(BlockNumberOrTag::Latest, BlockNumberOrTag::Number);

Ok(self.0.request("eth_getBlockByNumber", (tag, full)).await?)
self.0.request("eth_getBlockByNumber", (tag, full)).await
}

/// Returns the account and storage values of the specified account including the Merkle-proof.
Expand All @@ -104,7 +104,7 @@ impl RpcClient {
let tag = block_number.map_or(BlockNumberOrTag::Latest, BlockNumberOrTag::Number);
let params = (address, storage_keys, tag);

Ok(self.0.request("eth_getProof", params).await?)
self.0.request("eth_getProof", params).await
}

/// Perform multiple `eth_getProof` calls in a single batch.
Expand Down Expand Up @@ -145,7 +145,7 @@ impl RpcClient {
let tag = block_number.map_or(BlockNumberOrTag::Latest, BlockNumberOrTag::Number);
let params = (calls, tag);

Ok(self.0.request("trace_callMany", params).await?)
self.0.request("trace_callMany", params).await
}

/// Performs the `debug_traceCall` JSON-RPC method.
Expand All @@ -158,7 +158,7 @@ impl RpcClient {
let tag = block_number.map_or(BlockNumberOrTag::Latest, BlockNumberOrTag::Number);
let params = (tx, tag, opts);

Ok(self.0.request("debug_traceCall", params).await?)
self.0.request("debug_traceCall", params).await
}
}

Expand Down

0 comments on commit fbbb41a

Please sign in to comment.