You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to create a detector for custom errors naming, as following
def_detect(self) ->List[Output]:
results= []
forcontractinself.compilation_unit.contracts:
ifcontract.file_scope.filename.relative.startswith("lib/"):
continueforcustom_errorincontract.custom_errors_declared:
hasEventWrongNaming=IncorrectErrorNamingDetector.detect_incorrect_naming(custom_error)
ifhasEventWrongNaming:
info= [
contract,
custom_error,
" declares error with non standard name: ",
custom_error.name,
"\n",
]
res=self.generate_result(info)
results.append(res)
Getting the error
raise SlitherError(f"Impossible to add {type(add)} to the json")
slither.exceptions.SlitherError: Impossible to add <class 'slither.core.declarations.custom_error_contract.CustomErrorContract'> to the json
Describe the desired feature
Trying to create a detector for custom errors naming, as following
Getting the error
The Output class is missing that field:
The text was updated successfully, but these errors were encountered: