Skip to content

Commit 0f492cb

Browse files
committed
Initial commit
0 parents  commit 0f492cb

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

Makefile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
SRC = $(wildcard *.sol)
2+
3+
.PHONY: clean outdir
4+
5+
all: outdir $(SRC:.sol=.bin)
6+
7+
%.bin: %.sol
8+
solc --overwrite --abi --bin --optimize = -o out/ $<
9+
10+
outdir:
11+
mkdir -p out
12+
13+
clean:
14+
rm -f out/*

randomFail.sol

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
pragma solidity ^0.4.21;
2+
3+
4+
contract RandomFail {
5+
6+
address[] public players;
7+
uint constant public TICKET_PRICE = 0.01 ether;
8+
9+
function RandomFail() public {
10+
11+
}
12+
13+
function () public payable {
14+
require(msg.value == 0);
15+
}
16+
17+
function purchaseTicket() public payable {
18+
19+
}
20+
21+
}

0 commit comments

Comments
 (0)