You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function destroy() public{ //before calling this function: 1) add money to this contract (either at deployment or with the giveMeMoney function) 2) call setOwner with as input your instance address
selfdestruct(owner);
}
constructor() public payable{ //use the Value filed of RemixIDE to send Ether at creation of the contract
}
function giveMeMoney() public payable{ //use the Value field to send money (if you didn't send any at initiation)