diff --git a/slither/detectors/statements/divide_before_multiply.py b/slither/detectors/statements/divide_before_multiply.py index 47d3ed3c6d..1b7c721979 100644 --- a/slither/detectors/statements/divide_before_multiply.py +++ b/slither/detectors/statements/divide_before_multiply.py @@ -64,8 +64,7 @@ def _explore(to_explore, f_results, divisions): # pylint: disable=too-many-bran node_results = [] for ir in node.irs: - # check for Constant, has its not hashable (TODO: make Constant hashable) - if isinstance(ir, Assignment) and not isinstance(ir.rvalue, Constant): + if isinstance(ir, Assignment): if ir.rvalue in divisions: # Avoid dupplicate. We dont use set so we keep the order of the nodes if node not in divisions[ir.rvalue]: