diff --git a/electrum/gui/qt/main_window.py b/electrum/gui/qt/main_window.py index 7503610cc..7b9c5c829 100644 --- a/electrum/gui/qt/main_window.py +++ b/electrum/gui/qt/main_window.py @@ -3510,6 +3510,10 @@ def call_smart_contract(self, address: str, func: dict, args: list, sender: str, types = list([x['type'] for x in func.get('outputs', [])]) try: if isinstance(result, dict): + except_msg = result.get('executionResult', {}).get('exceptedMessage', '') + if len(except_msg) > 1: + dialog.show_message(f"exceptedMessage: {except_msg}") + return output = eth_abi.decode_abi(types, binascii.a2b_hex(result['executionResult']['output'])) else: output = eth_abi.decode_abi(types, binascii.a2b_hex(result))