function endSuply() public {
require(msg.sender == admin,"only admin can end the token sale");
require(tokenContract.transfer(admin, tokenContract.balanceOf(address(this))),"balance not transferring");
selfdestruct(admin);
}
here admin is a state variable declared as address admin;
But the error pops up and doesn't compile !
I just need to disable the contract, how can it be done ?