In official documentation of Solidity about Self-destruct instruction is written:
If you want to deactivate your contracts, you should instead disable them by changing some internal state which causes all functions to revert.
Can Some one explain me what does mean?
It's sufficient and correct this code to destroy a contract?:
function kill() public { if (msg.sender == owner) // only allow this action if the account sending the signal is the creator selfdestruct(owner); // kills this contract and sends remaining funds back to creator } Thanks a lot, I'm learning...