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/check-upgradability/contract_initialization.sol

49 lines
789 B

contract Initializable{
address destination;
modifier initializer(){
_;
}
}
contract Contract_no_bug is Initializable{
function initialize() public initializer{
}
}
contract Contract_lack_to_call_modifier is Initializable{
function initialize() public {
}
}
contract Contract_not_called_super_init is Contract_no_bug{
function initialize() public initializer{
}
}
contract Contract_no_bug_inherits is Contract_no_bug{
function initialize() public initializer{
Contract_no_bug.initialize();
}
}
contract Contract_double_call is Contract_no_bug, Contract_no_bug_inherits{
function initialize() public initializer{
Contract_no_bug_inherits.initialize();
Contract_no_bug.initialize();
}
}