Guest User

Untitled

a guest
Dec 15th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. // Our first contract is a faucet!
  2. contract Faucet {
  3. // Give out ether to anyone who asks
  4. function withdraw( uint withdraw_amount) public {
  5. // Limit withdrawal amount
  6. require( withdraw_amount <= 100000000000000000);
  7. // Send the amount to the address that requested it
  8. msg.sender.transfer( withdraw_amount); }
  9. // Accept any incoming amount
  10. function () public payable {}
  11. }
Add Comment
Please, Sign In to add comment