I'm just wondering what would happen if I don't put a selfdestrut()
method in my smart contract.
As I read from the Solidity documentation (Self-destruct):
Even if a contract’s code does not contain a call to
selfdestruct
, it can still perform that operation usingdelegatecall
orcallcode
.
But... does it mean that anyone could call selfdestruct()
to any contract?