Skip to content

Commit

Permalink
eth: add warning about from_block
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-frmr committed Jul 17, 2024
1 parent 049d47b commit 488ff36
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/eth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,10 @@ impl Provider {

/// Subscribes to logs without waiting for a confirmation.
///
/// WARNING: some RPC providers will throw an error if a subscription filter
/// has the `from_block` parameter. Make sure to avoid this parameter for subscriptions
/// even while using it for getLogs.
///
/// # Parameters
/// - `sub_id`: The subscription ID to be used for unsubscribing.
/// - `filter`: The filter criteria for the logs.
Expand Down

0 comments on commit 488ff36

Please sign in to comment.