|
@@ -1,10 +1,10 @@
|
|
|
pragma solidity ^0.4.0;
|
|
|
import './PullPayment.sol';
|
|
|
-import './examples/ExampleToken.sol';
|
|
|
+import './token/SimpleToken.sol';
|
|
|
|
|
|
/*
|
|
|
* Bounty
|
|
|
- * This bounty will pay out if you can cause a ExampleToken's balance
|
|
|
+ * This bounty will pay out if you can cause a SimpleToken's balance
|
|
|
* to be lower than its totalSupply, which would mean that it doesn't
|
|
|
* have sufficient ether for everyone to withdraw.
|
|
|
*/
|
|
@@ -17,16 +17,17 @@ contract Bounty is PullPayment {
|
|
|
if (claimed) throw;
|
|
|
}
|
|
|
|
|
|
- function createTarget() returns(ExampleToken) {
|
|
|
- ExampleToken target = new ExampleToken();
|
|
|
+ function createTarget() returns(SimpleToken) {
|
|
|
+ SimpleToken target = new SimpleToken();
|
|
|
researchers[target] = msg.sender;
|
|
|
return target;
|
|
|
}
|
|
|
|
|
|
- function claim(ExampleToken target) {
|
|
|
+ function claim(SimpleToken target) {
|
|
|
address researcher = researchers[target];
|
|
|
if (researcher == 0) throw;
|
|
|
- // check ExampleToken contract invariants
|
|
|
+ // Check SimpleToken contract invariants
|
|
|
+ // Customize this to the specifics of your contract
|
|
|
if (target.totalSupply() == target.balance) {
|
|
|
throw;
|
|
|
}
|