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/detectors/locked-ether/0.6.11/locked_ether.sol

27 lines
434 B

// pragma solidity ^0.5.0;
contract Locked{
function receive_eth() payable public{
require(msg.value > 0);
}
}
contract Send{
address payable owner = msg.sender;
function withdraw() public virtual {
owner.transfer(address(this).balance);
}
}
contract Unlocked is Locked, Send{
function withdraw() public override {
super.withdraw();
}
}
contract OnlyLocked is Locked{ }