Skip to content

Slither fails to detect some constants #465

@gustavo-grieco

Description

@gustavo-grieco

The Echidna printer in Slither fails to detect some constants, for instance:

contract C {
  uint x = 1;
}

won't be detected:

$ slither --print echidna small.sol
...
INFO:Printers:{
    "payable": {},
    "timestamp": {},
    "block_number": {},
    "msg_sender": {},
    "msg_gas": {},
    "assert": {},
    "constant_functions": {},
    "constants_used": {},
    "constants_used_in_binary": {},
    "functions_relations": {
        "C": {}
    },
    "constructors": {},
    "have_external_calls": {},
    "call_a_parameter": {},
    "use_balance": {}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions