From a184013d1e928f39e0bbf88cc98019c62f833a8e Mon Sep 17 00:00:00 2001 From: Francisco Giordano Date: Mon, 9 Oct 2017 19:08:32 -0300 Subject: [PATCH] explicitly mark functions public --- contracts/token/TokenVesting.sol | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contracts/token/TokenVesting.sol b/contracts/token/TokenVesting.sol index 2612fd42a..c8e8c9214 100644 --- a/contracts/token/TokenVesting.sol +++ b/contracts/token/TokenVesting.sol @@ -53,7 +53,7 @@ contract TokenVesting is Ownable { * @notice Transfers vested tokens to beneficiary. * @param token ERC20 token which is being vested */ - function release(ERC20Basic token) { + function release(ERC20Basic token) public { uint256 vested = vestedAmount(token); require(vested > 0); @@ -70,7 +70,7 @@ contract TokenVesting is Ownable { * remain in the contract, the rest are returned to the owner. * @param token ERC20 token which is being vested */ - function revoke(ERC20Basic token) onlyOwner { + function revoke(ERC20Basic token) public onlyOwner { require(revocable); require(!revoked[token]); @@ -90,7 +90,7 @@ contract TokenVesting is Ownable { * @dev Calculates the amount that has already vested but hasn't been released yet. * @param token ERC20 token which is being vested */ - function vestedAmount(ERC20Basic token) constant returns (uint256) { + function vestedAmount(ERC20Basic token) public constant returns (uint256) { if (now < cliff) { return 0; } else if (now >= start + duration || revoked[token]) {