File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed
Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ authors = ["OpenZeppelin"]
77edition = " 2024"
88license = " AGPL-3.0-only"
99repository = " https://github.com/OpenZeppelin/Event-Scanner"
10- version = " 0.1 .0-alpha.3 "
10+ version = " 0.2 .0-alpha"
1111
1212[workspace .lints .clippy ]
1313pedantic = " warn"
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ Add `event-scanner` to your `Cargo.toml`:
5252
5353``` toml
5454[dependencies ]
55- event-scanner = " 0.1 .0-alpha.3 "
55+ event-scanner = " 0.2 .0-alpha"
5656```
5757
5858Create an event stream for the given event filters registered with the ` EventScanner ` :
@@ -80,7 +80,7 @@ async fn run_scanner(
8080 client . start_scanner (BlockNumberOrTag :: Earliest , Some (BlockNumberOrTag :: Latest )). await
8181 });
8282
83- while let Some (Ok (logs )) = stream . next (). await {
83+ while let Some (EventScannerMessage :: Data (logs )) = stream . next (). await {
8484 println! (" Fetched logs: {logs:?}" );
8585 }
8686
@@ -122,9 +122,10 @@ let specific_filter = EventFilter::new()
122122let specific_filter = EventFilter :: new ()
123123 . with_event (Counter :: CountIncreased :: SIGNATURE );
124124
125- // Track ALL events from a SPECIFIC contract
125+ // Track ALL events from a SPECIFIC contracts
126126let all_contract_events_filter = EventFilter :: new ()
127- . with_contract_address (* counter_contract . address ());
127+ . with_contract_address (* counter_contract . address ())
128+ . with_contract_address (* other_counter_contract . address ());
128129
129130// Track ALL events from ALL contracts in the block range
130131let all_events_filter = EventFilter :: new ();
You can’t perform that action at this time.
0 commit comments