File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -265,9 +265,12 @@ def get_logs(
265
265
# get logs and split on exception
266
266
try :
267
267
with self .w3 .batch_requests () as batch :
268
+ filter_params_cleaned = {** filter_params }
269
+ filter_params_cleaned .pop ("fromBlockParentHash" , None )
270
+ filter_params_cleaned .pop ("toBlockHash" , None )
268
271
if from_block_parent_hash is not None :
269
272
batch .add (self ._get_block (from_block ))
270
- batch .add (self ._get_logs (filter_params ))
273
+ batch .add (self ._get_logs (filter_params_cleaned ))
271
274
batch .add (self ._get_block (to_block ))
272
275
273
276
events : list [LogReceipt ]
@@ -304,6 +307,9 @@ def get_logs(
304
307
return self .get_logs (left_filter , ** kwargs ) + self .get_logs (right_filter , ** kwargs )
305
308
306
309
def get_logs_inner (self , filter_params : FilterParams , no_retry : bool = False ):
310
+ filter_params = {** filter_params }
311
+ filter_params .pop ("fromBlockParentHash" , None )
312
+ filter_params .pop ("toBlockHash" , None )
307
313
if not self .w3 .should_retry :
308
314
no_retry = True
309
315
return exponential_retry (func_name = "get_logs" )(self ._get_logs )(filter_params , no_retry = no_retry )
Original file line number Diff line number Diff line change 1
1
from setuptools import setup , find_packages
2
2
3
- VERSION = '0.2.5 '
3
+ VERSION = '0.2.6 '
4
4
DESCRIPTION = 'IceCreamSwap Web3.py wrapper'
5
5
LONG_DESCRIPTION = 'IceCreamSwap Web3.py wrapper with automatic retries, multicall and other advanced functionality'
6
6
You can’t perform that action at this time.
0 commit comments