File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -160,11 +160,10 @@ def get_filter(
160
160
topic : str | list [str ]
161
161
if isinstance (topics [i ], str ):
162
162
topic = [topics [i ]]
163
+ elif hasattr (topics [i ], "hex" ):
164
+ topic = [topics [i ].hex ()]
163
165
else :
164
- try :
165
- topic = [single_topic .hex () for single_topic in topics [i ]]
166
- except Exception :
167
- topic = [topics [i ].hex ()]
166
+ topic = [(single_topic .hex () if not isinstance (single_topic , str ) else single_topic ) for single_topic in topics [i ]]
168
167
query ["logs" ][0 ][f"topic{ i } " ] = topic
169
168
170
169
logs : list [LogReceipt ] = []
Original file line number Diff line number Diff line change 1
1
from setuptools import setup , find_packages
2
2
3
- VERSION = '0.1.16 '
3
+ VERSION = '0.1.17 '
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