diff --git a/Cargo.toml b/Cargo.toml index 9322af9..eee5fab 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,7 +5,7 @@ edition = "2021" rust-version = "1.82" [dependencies] -alloy = { version = "0.6.2", features = ["full"] } +alloy = { version = "0.8.0", features = ["full"] } chrono = "0.4.38" env_logger = { version = "0.11.5", features = ["color"] } futures-util = "0.3.31" diff --git a/src/blockchain/transaction.rs b/src/blockchain/transaction.rs index 8f8f954..b802e5b 100644 --- a/src/blockchain/transaction.rs +++ b/src/blockchain/transaction.rs @@ -1,4 +1,5 @@ use crate::blockchain::configuration::{EventFilter, EventSubscription}; +use alloy::consensus::Transaction; use alloy::network::TransactionResponse; use alloy::providers::{Provider, RootProvider}; use alloy::rpc::types::{Block, Log}; @@ -18,7 +19,7 @@ where { // Iterate over the transactions in the block for transaction in block.transactions.into_transactions() { - if let Some(to) = TransactionResponse::to(&transaction) { + if let Some(to) = transaction.to() { // Check if the destination address is in the filters if let Some(event_filters) = subscriptions .iter()