Expose the custom error

pull/1852/head
Simone 2 years ago
parent d15cc6ad14
commit 637b8e2a9d
  1. 4
      slither/core/declarations/solidity_variables.py

@ -201,6 +201,10 @@ class SolidityCustomRevert(SolidityFunction):
self._custom_error = custom_error
self._return_type: List[Union[TypeInformation, ElementaryType]] = []
@property
def custom_error(self) -> CustomError:
return self._custom_error
def __eq__(self, other: Any) -> bool:
return (
self.__class__ == other.__class__

Loading…
Cancel
Save