File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -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