reorganize examples into folder

This commit is contained in:
Manuel Araoz
2016-08-16 12:26:25 -03:00
parent 30c0600ac1
commit 71295a12a9
7 changed files with 3 additions and 3 deletions

View File

@ -0,0 +1,21 @@
// UNSAFE CODE, DO NOT USE!
contract BadPushPayments {
address highestBidder;
uint highestBid;
function bid() {
if (msg.value < highestBid) throw;
if (highestBidder != 0) {
// return bid to previous winner
if (!highestBidder.send(highestBid)) {
throw;
}
}
highestBidder = msg.sender;
highestBid = msg.value;
}
}