-
Notifications
You must be signed in to change notification settings - Fork 4
Migrate event scanner tests #20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
default
cbda3e8 to
a4dd60b
Compare
879ea15 to
0fb8d7b
Compare
c363eaa to
159c33f
Compare
| pub struct EventOrderingCallback { | ||
| pub counts: Arc<Mutex<Vec<u64>>>, | ||
| } | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Loving the event callback approach so far, seems super convenient for testing
tests/live_mode/basic.rs
Outdated
|
|
||
| let mut builder = EventScannerBuilder::new(); | ||
| builder.with_event_filter(filter); | ||
| let scanner = builder.connect_ws::<Ethereum>(anvil.ws_endpoint_url()).await?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not needed for this PR, just a note for future reference: would be convenient if we implemented connect_provider, so we can just pass the local provider into the scanner
Uh oh!
There was an error while loading. Please reload this page.