Skip to content

Commit e9b0409

Browse files
committed
v0.1.54 added handling for completely empty bach responses (which should not happen, but does)
1 parent 019168f commit e9b0409

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

IceCreamSwapWeb3/BatchRetryMiddleware.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ def request_wrapper(method, params):
5555
for i, (request_single, response_single) in enumerate(zip(requests_info, response)):
5656
if (
5757
"error" in response_single or
58+
response_single.get("jsonrpc") != "2.0" or
5859
(
5960
"eth_getBlockBy" in request_single[0] and
6061
response_single.get("result") in NULL_RESPONSES

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.1.53'
3+
VERSION = '0.1.54'
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)