From 488ff361f63bec5ffe1210ee1353e0cdd9b755ca Mon Sep 17 00:00:00 2001 From: dr-frmr Date: Wed, 17 Jul 2024 16:23:06 +0200 Subject: [PATCH] eth: add warning about `from_block` --- src/eth.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/eth.rs b/src/eth.rs index 8c93ffe..49a521d 100644 --- a/src/eth.rs +++ b/src/eth.rs @@ -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.