chore: fmt / clippy

This commit is contained in:
Georgios Konstantopoulos 2022-11-15 13:00:40 -08:00
parent d47e34dc5b
commit 74bf6fbb04
3 changed files with 5 additions and 7 deletions

View File

@ -8,7 +8,7 @@ use std::{
collections::{BTreeMap, BTreeSet, HashMap, HashSet},
fs,
io::Write,
path::{Path, PathBuf},
path::Path,
};
use toml::Value;

View File

@ -12,9 +12,8 @@ async fn main() -> Result<()> {
let last_block = client.get_block(BlockNumber::Latest).await?.unwrap().number.unwrap();
println!("last_block: {last_block}");
let erc20_transfer_filter = Filter::new()
.from_block(last_block - 10000)
.event("Transfer(address,address,uint256)");
let erc20_transfer_filter =
Filter::new().from_block(last_block - 10000).event("Transfer(address,address,uint256)");
let mut stream = client.get_logs_paginated(&erc20_transfer_filter, 10);

View File

@ -14,9 +14,8 @@ async fn main() -> Result<()> {
let last_block = client.get_block(BlockNumber::Latest).await?.unwrap().number.unwrap();
println!("last_block: {last_block}");
let erc20_transfer_filter = Filter::new()
.from_block(last_block - 25)
.event("Transfer(address,address,uint256)");
let erc20_transfer_filter =
Filter::new().from_block(last_block - 25).event("Transfer(address,address,uint256)");
let mut stream = client.subscribe_logs(&erc20_transfer_filter).await?;