mirror of https://github.com/crytic/slither
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
76 lines
992 B
76 lines
992 B
6 years ago
|
//pragma solidity ^0.4.24;
|
||
6 years ago
|
|
||
|
contract naming {
|
||
|
|
||
|
enum Numbers {ONE, TWO}
|
||
|
enum numbers {ONE, TWO}
|
||
|
|
||
|
uint constant MY_CONSTANT = 1;
|
||
|
uint constant MY_other_CONSTANT = 2;
|
||
|
|
||
|
uint Var_One = 1;
|
||
|
uint varTwo = 2;
|
||
|
|
||
|
struct test {
|
||
6 years ago
|
uint a;
|
||
6 years ago
|
}
|
||
|
|
||
|
struct Test {
|
||
6 years ago
|
uint a;
|
||
6 years ago
|
}
|
||
|
|
||
|
event Event_(uint);
|
||
|
event event_(uint);
|
||
|
|
||
6 years ago
|
function getOne() view public returns(uint)
|
||
6 years ago
|
{
|
||
|
return 1;
|
||
|
}
|
||
|
|
||
6 years ago
|
function GetOne() view public returns (uint)
|
||
6 years ago
|
{
|
||
|
return 1;
|
||
|
}
|
||
|
|
||
6 years ago
|
function setInt(uint number1, uint Number2) public
|
||
6 years ago
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
modifier CantDo() {
|
||
|
_;
|
||
|
}
|
||
|
|
||
|
modifier canDo() {
|
||
|
_;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
contract Test {
|
||
|
|
||
|
}
|
||
|
|
||
|
contract T {
|
||
6 years ago
|
uint private _myPrivateVar;
|
||
|
uint _myPublicVar;
|
||
|
|
||
|
|
||
6 years ago
|
function test(uint _unused, uint _used) public returns(uint){
|
||
6 years ago
|
return _used;}
|
||
6 years ago
|
|
||
|
|
||
6 years ago
|
uint k = 1;
|
||
|
|
||
|
uint constant M = 1;
|
||
|
|
||
|
uint l = 1;
|
||
|
}
|
||
6 years ago
|
|
||
|
contract ParameterNameEmptyString {
|
||
|
|
||
6 years ago
|
function foo (uint) public {
|
||
6 years ago
|
}
|
||
|
|
||
|
}
|