Skip to content

Commit

Permalink
Update alloy-rs dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
romanovich23 committed Dec 10, 2024
1 parent a024084 commit 49794ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion src/blockchain/transaction.rs
Original file line number Diff line number Diff line change
@@ -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};
Expand All @@ -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()
Expand Down

0 comments on commit 49794ff

Please sign in to comment.