crytic / crytic/slither

Slither fails to detect some constants

Open
#465 5 comments 0 reactions 0 assignees View on GitHub
echidna
Dominant language
Python
Stars
6.4k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

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

```solidity
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": {}
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.