PSA: I'm new to Solidity/Truffle and I'm hoping you guys won't be too harsh on me
I'm trying to figure out how call a function that only the smart contract owner can call. The reason why I want to do this, is because I want to be able to self destruct my contract whenever I want. I've seen guides on how to write the function itself, but that's not exactly in question for me. I just want to know how I can call it as the owner of the smart contract.
Any help would be greatly appreciated, thanks.
Edit: what I currently have
function kaboom() public onlyOwner selfdestruct(owner); }