// 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 Answer 1


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


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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