diff --git a/crates/providers/src/provider.rs b/crates/providers/src/provider.rs index 1d7e335f1b2..cb2baaf12a8 100644 --- a/crates/providers/src/provider.rs +++ b/crates/providers/src/provider.rs @@ -288,12 +288,13 @@ impl TempProvider for Provider { .await } + /// Gets the last block number available. /// Gets the last block number available. async fn get_block_number(&self) -> TransportResult - where - Self: Sync, + where + Self: Sync, { - self.inner.prepare("eth_blockNumber", Cow::<()>::Owned(())).await + self.inner.prepare("eth_blockNumber", Cow::<()>::Owned(())).await.map(|num: U64| num.to::()) } /// Gets the balance of the account at the specified tag, which defaults to latest.