0
 function destroySmartContract(address payable _to) public {
    require(msg.sender == owner, "You are not the owner");
    selfdestruct(_to);
}

Something like this please?

1
  • the same way you do it on Ethereum.
    – Majd TL
    Nov 27, 2021 at 9:20

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.