chore: fmt
This commit is contained in:
parent
dd4893a752
commit
381179fb85
|
@ -9,7 +9,12 @@ async fn main() -> eyre::Result<()> {
|
||||||
let mut stream = provider.watch_blocks().await?.take(5);
|
let mut stream = provider.watch_blocks().await?.take(5);
|
||||||
while let Some(block) = stream.next().await {
|
while let Some(block) = stream.next().await {
|
||||||
let block = provider.get_block(block).await?.unwrap();
|
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(())
|
Ok(())
|
||||||
|
|
Loading…
Reference in New Issue