Guest User

Untitled

a guest
Jun 18th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. pragma solidity ^0.4.24;
  2.  
  3. contract TRY{
  4. uint public temp=0;
  5. function transfer_ether() public payable{
  6. require(msg.value>=60);
  7. temp=60;
  8. msg.sender.transfer(msg.value-60);
  9. }
  10. function to_contract() public payable {
  11. uint a=temp;
  12. temp=0;
  13. msg.sender.transfer(a);
  14. }
  15. }
Add Comment
Please, Sign In to add comment