Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-aranha-cw committed Feb 7, 2025
1 parent 75317a8 commit 77761f6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/infra/blockchain_client/blockchain_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,10 @@ impl BlockchainClient {
tracing::debug!(%block_number, "fetching block");

let number = to_json_value(block_number);
let result = self.http.request::<Option<ExternalBlockWithReceipts>, _>("stratus_getBlockAndReceipts", [number]).await;
let result = self
.http
.request::<Option<ExternalBlockWithReceipts>, _>("stratus_getBlockAndReceipts", [number])
.await;

match result {
Ok(block) => Ok(block),
Expand All @@ -164,7 +167,10 @@ impl BlockchainClient {
tracing::debug!(%block_number, "fetching block");

let number = to_json_value(block_number);
let result = self.http.request::<Option<ExternalBlock>, _>("eth_getBlockByNumber", [number, JsonValue::Bool(true)]).await;
let result = self
.http
.request::<Option<ExternalBlock>, _>("eth_getBlockByNumber", [number, JsonValue::Bool(true)])
.await;

match result {
Ok(block) => Ok(block),
Expand Down

0 comments on commit 77761f6

Please sign in to comment.