Skip to content
This repository has been archived by the owner on Jan 8, 2025. It is now read-only.

Commit

Permalink
Small refactoring around FilterChanges (#1006)
Browse files Browse the repository at this point in the history
Small refactoring around FilterChanges
  • Loading branch information
tcoratger authored Apr 23, 2024
1 parent 5cfc4ae commit ba07bb4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/eth_provider/provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -444,8 +444,7 @@ where
.insert("log.address", doc! {"$in": adds.into_iter().map(|a| format_hex(a, 40)).collect::<Vec<_>>()})
});

let logs = self.database.get::<StoredLog>(database_filter, None).await?;
Ok(FilterChanges::Logs(logs.into_iter().map_into().collect()))
Ok(FilterChanges::Logs(self.database.get_and_map_to::<_, StoredLog>(database_filter, None).await?))
}

async fn call(&self, request: TransactionRequest, block_id: Option<BlockId>) -> EthProviderResult<Bytes> {
Expand Down

0 comments on commit ba07bb4

Please sign in to comment.