Skip to content

Commit

Permalink
Add undefined wiki info to shadowing function detector (close #158)
Browse files Browse the repository at this point in the history
  • Loading branch information
montyly committed Feb 4, 2019
1 parent 76c0777 commit 0ff9305
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions slither/detectors/shadowing/shadowing_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ class ShadowingFunctionsDetection(AbstractDetector):
IMPACT = DetectorClassification.LOW
CONFIDENCE = DetectorClassification.HIGH

# This detector is not meant to be called as a generic detector
# It's only used by inheritances printers
WIKI = 'undefined'
WIKI_TITLE = 'undefined'
WIKI_DESCRIPTION = 'undefined'
WIKI_EXPLOIT_SCENARIO = 'undefined'
WIKI_RECOMMENDATION = 'undefined'


def detect_shadowing(self, contract):
functions_declared = set([x.full_name for x in contract.functions])
ret = {}
Expand Down

0 comments on commit 0ff9305

Please sign in to comment.