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.
27 lines
434 B
27 lines
434 B
4 years ago
|
// pragma solidity ^0.5.0;
|
||
6 years ago
|
contract Locked{
|
||
|
|
||
4 years ago
|
function receive_eth() payable public{
|
||
6 years ago
|
require(msg.value > 0);
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
contract Send{
|
||
|
address payable owner = msg.sender;
|
||
|
|
||
4 years ago
|
function withdraw() public virtual {
|
||
6 years ago
|
owner.transfer(address(this).balance);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
contract Unlocked is Locked, Send{
|
||
|
|
||
4 years ago
|
function withdraw() public override {
|
||
6 years ago
|
super.withdraw();
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
contract OnlyLocked is Locked{ }
|