Static Analyzer for Solidity
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.
 
 
 
 
slither/tests/naming_convention.sol

75 lines
992 B

//pragma solidity ^0.4.24;
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 {
uint a;
}
struct Test {
uint a;
}
event Event_(uint);
event event_(uint);
function getOne() view public returns(uint)
{
return 1;
}
function GetOne() view public returns (uint)
{
return 1;
}
function setInt(uint number1, uint Number2) public
{
}
modifier CantDo() {
_;
}
modifier canDo() {
_;
}
}
contract Test {
}
contract T {
uint private _myPrivateVar;
uint _myPublicVar;
function test(uint _unused, uint _used) public returns(uint){
return _used;}
uint k = 1;
uint constant M = 1;
uint l = 1;
}
contract ParameterNameEmptyString {
function foo (uint) public {
}
}