Skip to content

TypeError: sequence item 0: expected str instance, dict found when running Slither #579

Open
@lawnmowerdeadman

Description

@lawnmowerdeadman

Describe the bug

Slither fails to compile contracts with the following error:
TypeError: sequence item 0: expected str instance, dict found

Expected behavior

Slither should compile the contracts without errors.

Environment

  • Slither version: 0.10.4
  • crytic-compile version: 0.3.7
  • solc version: 0.8.28+commit.7893614a.Linux.g++
  • Python version: 3.11.10
  • Operating system: Ubuntu on WSL

To Reproduce

Steps to reproduce the behavior:

  1. Activate the virtual environment.
  2. Install Slither.
  3. Run Slither on the contract.

Additional context

slither.config.json content:
{
"solc": {
"version": "0.8.28",
"args": ["-I", "/path/to/project/node_modules"]
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions