Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Our first contract is a faucet!
- contract Faucet {
- // Give out ether to anyone who asks
- function withdraw( uint withdraw_amount) public {
- // Limit withdrawal amount
- require( withdraw_amount <= 100000000000000000);
- // Send the amount to the address that requested it
- msg.sender.transfer( withdraw_amount); }
- // Accept any incoming amount
- function () public payable {}
- }
Add Comment
Please, Sign In to add comment