feat: solidity code for faucet smart contract
This commit is contained in:
commit
ada22f489c
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
artifacts/
|
||||
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
[submodule "web"]
|
||||
path = web
|
||||
url = https://gitea.snsd0805.com/snsd0805/faucet_web.git
|
||||
10
Faucet.sol
Normal file
10
Faucet.sol
Normal file
@ -0,0 +1,10 @@
|
||||
pragma solidity ^0.4.25;
|
||||
|
||||
contract Faucet {
|
||||
function withdraw(uint withdraw_amount) public {
|
||||
require(withdraw_amount <= 1000000000000000);
|
||||
msg.sender.transfer(withdraw_amount);
|
||||
}
|
||||
|
||||
function () public payable {}
|
||||
}
|
||||
1
web
Submodule
1
web
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit bce3825c4837e8d507ce086e929e36e00003bc8e
|
||||
Loading…
Reference in New Issue
Block a user