import “./Ownable.sol”;
pragma solidity 0.5.12;
contract Destroyable is Ownable{ /* Helloworld.sol will import Destroyable.sol and therefore Ownable.sol as well */
/* moved withdraw money function from helloworld to destroyable. Originally said address wasn’t payable so changed it.*/
function getFunds() public onlyOwner{
selfdestruct(address(uint160(owner)));
}
}
deploying the contract on helloworld and self-destructing it returned all the funds to the owner but trying to add people afterwards didn’t change the balance, which is what is supposed to happen after self-destructing