diff --git a/user-ops-indexer/user-ops-indexer-logic/src/indexer/v06/constants.rs b/user-ops-indexer/user-ops-indexer-logic/src/indexer/v06/constants.rs index a9f5805a0..5bcbd117b 100644 --- a/user-ops-indexer/user-ops-indexer-logic/src/indexer/v06/constants.rs +++ b/user-ops-indexer/user-ops-indexer-logic/src/indexer/v06/constants.rs @@ -13,7 +13,7 @@ lazy_static! { abigen!(IEntrypointV06, "./src/indexer/v06/abi.json"); pub fn matches_entrypoint_event(log: &Log) -> bool { - log.address == *ENTRYPOINT_V06 && log.topics.get(0) == Some(&T::signature()) + log.address == *ENTRYPOINT_V06 && log.topics.first() == Some(&T::signature()) } pub fn parse_event(log: &Log) -> Result { diff --git a/user-ops-indexer/user-ops-indexer-logic/src/indexer/v06/indexer.rs b/user-ops-indexer/user-ops-indexer-logic/src/indexer/v06/indexer.rs index cc555afef..f19f4c4ec 100644 --- a/user-ops-indexer/user-ops-indexer-logic/src/indexer/v06/indexer.rs +++ b/user-ops-indexer/user-ops-indexer-logic/src/indexer/v06/indexer.rs @@ -284,7 +284,7 @@ impl<'a, C: PubsubClient> IndexerV06<'a, C> { Ok(model) => Some(model), Err(err) => { let logs_start_index = - logs.get(0).and_then(|l| l.log_index).map(|i| i.as_u64()); + logs.first().and_then(|l| l.log_index).map(|i| i.as_u64()); let logs_count = logs.len(); tracing::error!( tx_hash = ?tx_hash,