diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-07-09 21:59:42 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-09 21:59:42 +0800 |
commit | 694754b4fe410abfa0661e29dd3e6d4d1ea1283e (patch) | |
tree | 575e2e8075bd13b36c54e8d4518c1e77269aefb5 /test/compilationTests/zeppelin/crowdsale/RefundVault.sol | |
parent | e028d25ed34752a494a1efc0d3f9e4f0f1287d76 (diff) | |
parent | febbfd4204f72ea9371553dc3f2e349309b1bb0c (diff) | |
download | dexon-solidity-694754b4fe410abfa0661e29dd3e6d4d1ea1283e.tar.gz dexon-solidity-694754b4fe410abfa0661e29dd3e6d4d1ea1283e.tar.zst dexon-solidity-694754b4fe410abfa0661e29dd3e6d4d1ea1283e.zip |
Merge pull request #4432 from ethereum/visibilityCompilationTests
Specify default visibility in compilation tests
Diffstat (limited to 'test/compilationTests/zeppelin/crowdsale/RefundVault.sol')
-rw-r--r-- | test/compilationTests/zeppelin/crowdsale/RefundVault.sol | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/compilationTests/zeppelin/crowdsale/RefundVault.sol b/test/compilationTests/zeppelin/crowdsale/RefundVault.sol index 0be45ec4..19346c42 100644 --- a/test/compilationTests/zeppelin/crowdsale/RefundVault.sol +++ b/test/compilationTests/zeppelin/crowdsale/RefundVault.sol @@ -22,31 +22,31 @@ contract RefundVault is Ownable { event RefundsEnabled(); event Refunded(address indexed beneficiary, uint256 weiAmount); - constructor(address _wallet) { + constructor(address _wallet) public { require(_wallet != address(0x0)); wallet = _wallet; state = State.Active; } - function deposit(address investor) onlyOwner payable { + function deposit(address investor) public onlyOwner payable { require(state == State.Active); deposited[investor] = deposited[investor].add(msg.value); } - function close() onlyOwner { + function close() public onlyOwner { require(state == State.Active); state = State.Closed; emit Closed(); wallet.transfer(this.balance); } - function enableRefunds() onlyOwner { + function enableRefunds() public onlyOwner { require(state == State.Active); state = State.Refunding; emit RefundsEnabled(); } - function refund(address investor) { + function refund(address investor) public { require(state == State.Refunding); uint256 depositedValue = deposited[investor]; deposited[investor] = 0; |