Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Version of Solidity compiler this program was written for
- pragma solidity ^0.4.19;
- // 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 {}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement