Skip to content

[Bug-Candidate]: Slither crashes with the "list index out of bound" error. #2807

@YuriyGulyayev

Description

@YuriyGulyayev

Describe the issue:

I run it on Ubuntu Cinnamon 22.04.

STR:

git clone https://github.com/PredictionExplorer/Cosmic-Signature.git

cd Cosmic-Signature

npm ci

The project uses external solc. Currently it uses v. 0.8.30. If it's already installed on your machine the project should be able to find it. There is logic in the Hardhat config file that tries multiple possible paths. If not, install it:

pip3 install solc-select

solc-select use 0.8.30 --always-install

Make sure Hardhat compile succeeds:

npx hardhat compile

Run Slither:

cd slither

./slither-1.bash

At the end it will log to the console:

IndexError: list index out of range

Code example to reproduce the issue:

See above.

Version:

0.11.3

Relevant log output:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug-candidateBugs reports that are not yet confirmed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions