Skip to content

Commit 488ff36

Browse files
committed
eth: add warning about from_block
1 parent 049d47b commit 488ff36

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/eth.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,10 @@ impl Provider {
574574

575575
/// Subscribes to logs without waiting for a confirmation.
576576
///
577+
/// WARNING: some RPC providers will throw an error if a subscription filter
578+
/// has the `from_block` parameter. Make sure to avoid this parameter for subscriptions
579+
/// even while using it for getLogs.
580+
///
577581
/// # Parameters
578582
/// - `sub_id`: The subscription ID to be used for unsubscribing.
579583
/// - `filter`: The filter criteria for the logs.

0 commit comments

Comments
 (0)