Skip to content

Commit cd8c68c

Browse files
authored
build: bump version to v0.2.0-alpha (#110)
1 parent 38c88e6 commit cd8c68c

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ authors = ["OpenZeppelin"]
77
edition = "2024"
88
license = "AGPL-3.0-only"
99
repository = "https://github.com/OpenZeppelin/Event-Scanner"
10-
version = "0.1.0-alpha.3"
10+
version = "0.2.0-alpha"
1111

1212
[workspace.lints.clippy]
1313
pedantic = "warn"

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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

5858
Create 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()
122122
let 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
126126
let 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
130131
let all_events_filter = EventFilter::new();

0 commit comments

Comments
 (0)