-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
duplicateThis issue or pull request already existsThis issue or pull request already exists
Description
Describe the issue:
I make the contract upgradeable by use "@openzeppelin/contracts-upgradeable": "^4.5.1". when I remove this dependecy everything works fine.
Code example to reproduce the issue:
Traceback (most recent call last):
File "/opt/homebrew/lib/python3.9/site-packages/slither/__main__.py", line 743, in main_impl
) = process_all(filename, args, detector_classes, printer_classes)
File "/opt/homebrew/lib/python3.9/site-packages/slither/__main__.py", line 84, in process_all
) = process_single(compilation, args, detector_classes, printer_classes)
File "/opt/homebrew/lib/python3.9/site-packages/slither/__main__.py", line 69, in process_single
return _process(slither, detector_classes, printer_classes)
File "/opt/homebrew/lib/python3.9/site-packages/slither/__main__.py", line 110, in _process
detector_results = slither.run_detectors()
File "/opt/homebrew/lib/python3.9/site-packages/slither/slither.py", line 203, in run_detectors
results = [d.detect() for d in self._detectors]
File "/opt/homebrew/lib/python3.9/site-packages/slither/slither.py", line 203, in <listcomp>
results = [d.detect() for d in self._detectors]
File "/opt/homebrew/lib/python3.9/site-packages/slither/detectors/abstract_detector.py", line 152, in detect
for r in [output.data for output in self._detect()]:
File "/opt/homebrew/lib/python3.9/site-packages/slither/detectors/statements/delegatecall_in_loop.py", line 89, in _detect
values = detect_delegatecall_in_loop(c)
File "/opt/homebrew/lib/python3.9/site-packages/slither/detectors/statements/delegatecall_in_loop.py", line 13, in detect_delegatecall_in_loop
delegatecall_in_loop(f.entry_point, 0, [], results)
File "/opt/homebrew/lib/python3.9/site-packages/slither/detectors/statements/delegatecall_in_loop.py", line 41, in delegatecall_in_loop
delegatecall_in_loop(son, in_loop_counter, visited, results)
File "/opt/homebrew/lib/python3.9/site-packages/slither/detectors/statements/delegatecall_in_loop.py", line 41, in delegatecall_in_loop
delegatecall_in_loop(son, in_loop_counter, visited, results)
File "/opt/homebrew/lib/python3.9/site-packages/slither/detectors/statements/delegatecall_in_loop.py", line 38, in delegatecall_in_loop
delegatecall_in_loop(ir.function.entry_point, in_loop_counter, visited, results)
File "/opt/homebrew/lib/python3.9/site-packages/slither/detectors/statements/delegatecall_in_loop.py", line 25, in delegatecall_in_loop
if node.type == NodeType.STARTLOOP:
AttributeError: 'NoneType' object has no attribute 'type'
None
Error in .
Traceback (most recent call last):
File "/opt/homebrew/lib/python3.9/site-packages/slither/__main__.py", line 743, in main_impl
) = process_all(filename, args, detector_classes, printer_classes)
File "/opt/homebrew/lib/python3.9/site-packages/slither/__main__.py", line 84, in process_all
) = process_single(compilation, args, detector_classes, printer_classes)
File "/opt/homebrew/lib/python3.9/site-packages/slither/__main__.py", line 69, in process_single
return _process(slither, detector_classes, printer_classes)
File "/opt/homebrew/lib/python3.9/site-packages/slither/__main__.py", line 110, in _process
detector_results = slither.run_detectors()
File "/opt/homebrew/lib/python3.9/site-packages/slither/slither.py", line 203, in run_detectors
results = [d.detect() for d in self._detectors]
File "/opt/homebrew/lib/python3.9/site-packages/slither/slither.py", line 203, in <listcomp>
results = [d.detect() for d in self._detectors]
File "/opt/homebrew/lib/python3.9/site-packages/slither/detectors/abstract_detector.py", line 152, in detect
for r in [output.data for output in self._detect()]:
File "/opt/homebrew/lib/python3.9/site-packages/slither/detectors/statements/delegatecall_in_loop.py", line 89, in _detect
values = detect_delegatecall_in_loop(c)
File "/opt/homebrew/lib/python3.9/site-packages/slither/detectors/statements/delegatecall_in_loop.py", line 13, in detect_delegatecall_in_loop
delegatecall_in_loop(f.entry_point, 0, [], results)
File "/opt/homebrew/lib/python3.9/site-packages/slither/detectors/statements/delegatecall_in_loop.py", line 41, in delegatecall_in_loop
delegatecall_in_loop(son, in_loop_counter, visited, results)
File "/opt/homebrew/lib/python3.9/site-packages/slither/detectors/statements/delegatecall_in_loop.py", line 41, in delegatecall_in_loop
delegatecall_in_loop(son, in_loop_counter, visited, results)
File "/opt/homebrew/lib/python3.9/site-packages/slither/detectors/statements/delegatecall_in_loop.py", line 38, in delegatecall_in_loop
delegatecall_in_loop(ir.function.entry_point, in_loop_counter, visited, results)
File "/opt/homebrew/lib/python3.9/site-packages/slither/detectors/statements/delegatecall_in_loop.py", line 25, in delegatecall_in_loop
if node.type == NodeType.STARTLOOP:
AttributeError: 'NoneType' object has no attribute 'type'
Version:
slither --version: 0.8.2
Relevant log output:
No response
nkuba and vincfurc
Metadata
Metadata
Assignees
Labels
duplicateThis issue or pull request already existsThis issue or pull request already exists