0

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

1

msg.sender.transfer(amount) transfers the given amount from the contract to msg.sender

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.