mirror of https://github.com/ConsenSys/mythril
Fix ReturnData (#1683)
parent
822b1554fa
commit
1267c75854
@ -0,0 +1,24 @@ |
||||
pragma solidity 0.5.7; |
||||
|
||||
contract KillBilly { |
||||
bool public is_killable; |
||||
mapping (address => bool) public approved_killers; |
||||
|
||||
constructor() public { |
||||
is_killable = false; |
||||
} |
||||
|
||||
function killerize(address addr) public { |
||||
approved_killers[addr] = true; |
||||
} |
||||
|
||||
function activatekillability() public { |
||||
require(approved_killers[msg.sender] == true); |
||||
is_killable = true; |
||||
} |
||||
|
||||
function commencekilling() public { |
||||
require(is_killable); |
||||
selfdestruct(msg.sender); |
||||
} |
||||
} |
Loading…
Reference in new issue