diff --git a/pypechain/core/contract_call_exception.py b/pypechain/core/contract_call_exception.py index 947ddeed..f3ec97cb 100644 --- a/pypechain/core/contract_call_exception.py +++ b/pypechain/core/contract_call_exception.py @@ -49,6 +49,8 @@ def __init__( # We explicitly define which init we're calling due to multiple inheritance, # and handle passing in the correct arguments here exception_args = args + orig_exception.args + if decoded_error is not None: + exception_args += (decoded_error,) Exception.__init__(self, *exception_args) self.orig_exception = orig_exception self.decoded_error = decoded_error