aboutsummaryrefslogtreecommitdiffstats
path: root/test/compilationTests/zeppelin/Bounty.sol
diff options
context:
space:
mode:
authorErik Kundt <bitshift@posteo.org>2018-07-05 01:20:51 +0800
committerErik Kundt <bitshift@posteo.org>2018-07-05 01:20:51 +0800
commitfebbfd4204f72ea9371553dc3f2e349309b1bb0c (patch)
treef0543d5cb7948a13a555e9695a41b7f1053d798f /test/compilationTests/zeppelin/Bounty.sol
parent7101a8905656d52cf9023a2e4340219d184920c3 (diff)
downloaddexon-solidity-febbfd4204f72ea9371553dc3f2e349309b1bb0c.tar
dexon-solidity-febbfd4204f72ea9371553dc3f2e349309b1bb0c.tar.gz
dexon-solidity-febbfd4204f72ea9371553dc3f2e349309b1bb0c.tar.bz2
dexon-solidity-febbfd4204f72ea9371553dc3f2e349309b1bb0c.tar.lz
dexon-solidity-febbfd4204f72ea9371553dc3f2e349309b1bb0c.tar.xz
dexon-solidity-febbfd4204f72ea9371553dc3f2e349309b1bb0c.tar.zst
dexon-solidity-febbfd4204f72ea9371553dc3f2e349309b1bb0c.zip
Adds visibility to compilation tests.
Diffstat (limited to 'test/compilationTests/zeppelin/Bounty.sol')
-rw-r--r--test/compilationTests/zeppelin/Bounty.sol6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/compilationTests/zeppelin/Bounty.sol b/test/compilationTests/zeppelin/Bounty.sol
index 8be16a54..6341610b 100644
--- a/test/compilationTests/zeppelin/Bounty.sol
+++ b/test/compilationTests/zeppelin/Bounty.sol
@@ -29,7 +29,7 @@ contract Bounty is PullPayment, Destructible {
* msg.sender as a researcher
* @return A target contract
*/
- function createTarget() returns(Target) {
+ function createTarget() public returns(Target) {
Target target = Target(deployContract());
researchers[target] = msg.sender;
emit TargetCreated(target);
@@ -46,7 +46,7 @@ contract Bounty is PullPayment, Destructible {
* @dev Sends the contract funds to the researcher that proved the contract is broken.
* @param target contract
*/
- function claim(Target target) {
+ function claim(Target target) public {
address researcher = researchers[target];
if (researcher == address(0)) {
throw;
@@ -74,5 +74,5 @@ contract Target {
* In order to win the bounty, security researchers will try to cause this broken state.
* @return True if all invariant values are correct, false otherwise.
*/
- function checkInvariant() returns(bool);
+ function checkInvariant() public returns(bool);
}