added self destruct function
This commit is contained in:
parent
bd821069bf
commit
bd7d835fe1
|
@ -91,6 +91,10 @@ contract FoolsGrans is IERC20, Owned {
|
|||
emit FrozenFunds(target, freeze);
|
||||
}
|
||||
|
||||
function destroy() public onlyContractOwner {
|
||||
selfdestruct(payable(contractOwner));
|
||||
}
|
||||
|
||||
/* This unnamed function is called whenever someone tries to send ether to it */
|
||||
fallback () external {
|
||||
revert(); // Prevents accidental sending of ether
|
||||
|
|
Loading…
Reference in New Issue