If someone sends tokens and eth to a contact, is there anyway to create a function that will transfer any and all tokens or eth to owner address?
function sendEverything()
public
{
owner.transfer(this.balance);
owner.transfer(this.allthetokens);
}
In other words is there a generalized way to send any and all erc20 tokens, for instance even if the erc20 contract was created after my contract?