Skip to content

Commit 46a14b0

Browse files
committed
v0.2.1 Fixed correct usage of batch request context manager
1 parent 5d3822e commit 46a14b0

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

IceCreamSwapWeb3/EthAdvanced.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,9 +265,10 @@ def get_logs(
265265
batch.add(self._get_block(from_block))
266266
batch.add(self._get_logs(filter_params))
267267
batch.add(self._get_block(to_block))
268-
events: list[LogReceipt]
269-
to_block_body: BlockData
270-
batch_results = batch.execute()
268+
269+
events: list[LogReceipt]
270+
to_block_body: BlockData
271+
batch_results = batch.execute()
271272
if from_block_parent_hash is not None:
272273
events, to_block_body = batch_results
273274
else:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from setuptools import setup, find_packages
22

3-
VERSION = '0.2.0'
3+
VERSION = '0.2.1'
44
DESCRIPTION = 'IceCreamSwap Web3.py wrapper'
55
LONG_DESCRIPTION = 'IceCreamSwap Web3.py wrapper with automatic retries, multicall and other advanced functionality'
66

0 commit comments

Comments
 (0)