chore: fmt

This commit is contained in:
Georgios Konstantopoulos 2022-03-18 07:09:21 +02:00
parent dd4893a752
commit 381179fb85
1 changed files with 6 additions and 1 deletions

View File

@ -9,7 +9,12 @@ async fn main() -> eyre::Result<()> {
let mut stream = provider.watch_blocks().await?.take(5);
while let Some(block) = stream.next().await {
let block = provider.get_block(block).await?.unwrap();
println!("Ts: {:?}, block number: {} -> {:?}",block.timestamp,block.number.unwrap(),block.hash.unwrap());
println!(
"Ts: {:?}, block number: {} -> {:?}",
block.timestamp,
block.number.unwrap(),
block.hash.unwrap()
);
}
Ok(())