File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -103,14 +103,9 @@ def raise_contract_logic_error_on_revert(response: RPCResponse) -> RPCResponse:
103
103
104
104
message = error .get ("message" )
105
105
message_present = message is not None and message != ""
106
- data = error .get ("data" )
107
-
108
- if data is None :
109
- if message_present :
110
- raise ContractLogicError (message , data = MISSING_DATA )
111
- elif not message_present :
112
- raise ContractLogicError ("execution reverted" , data = MISSING_DATA )
113
- elif isinstance (data , dict ) and message_present :
106
+ data = error .get ("data" , MISSING_DATA )
107
+
108
+ if isinstance (data , dict ) and message_present :
114
109
raise ContractLogicError (f"execution reverted: { message } " , data = data )
115
110
elif isinstance (data , str ):
116
111
_raise_contract_error (data )
Original file line number Diff line number Diff line change 1
1
from setuptools import setup , find_packages
2
2
3
- VERSION = '0.1.60 '
3
+ VERSION = '0.1.61 '
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