mirror of https://github.com/ConsenSys/mythril
parent
93df00b669
commit
b3da975d4f
@ -1,17 +0,0 @@ |
||||
pragma solidity ^0.4.2; |
||||
|
||||
contract TOY { |
||||
|
||||
address public owner; |
||||
bool public FLAG; |
||||
|
||||
modifier checkOwner { |
||||
require(msg.sender == owner); _; |
||||
} |
||||
|
||||
function TOY() { owner = msg.sender; } |
||||
function setFlag(bool newFLAG) public { FLAG = newFLAG; } |
||||
function boom() public checkOwner { |
||||
selfdestruct(owner); |
||||
} |
||||
} |
Loading…
Reference in new issue