msg.sender.transfer(amount)
// 1) Is it true, that when I execute this code inside the function, it sends the amount to that contract? // 2) Is there any function, which does the opposite(from contract to msg.sender)? Thank you
Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.
Sign up to join this communitymsg.sender.transfer(amount)
transfers the given amount from the contract to msg.sender