Skip to content
Prev Previous commit
Next Next commit
changed function constant to view
  • Loading branch information
lead4good committed Nov 25, 2017
commit 7e990e788c378010d0880985fffad8bb81dbe36e
2 changes: 1 addition & 1 deletion contracts/examples/PreMintedCrowdsale.sol
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ contract PreMintedCrowdsale is Crowdsale {
}

// @return true if crowdsale event has ended
function hasEnded() public constant returns (bool) {
function hasEnded() public view returns (bool) {
bool capReached = PseudoMinter(token).availableSupply() < rate;
return super.hasEnded() || capReached;
}
Expand Down
2 changes: 1 addition & 1 deletion contracts/token/PseudoMinter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ contract PseudoMinter is Mintable, Ownable {
* @dev returns amount of tokens that can be pseudo minted. Be aware that
* this does not necessarily represent the hard cap of spendable tokens!
*/
function availableSupply() public constant returns (uint256) {
function availableSupply() public view returns (uint256) {
return token.allowance(vault, this);
}
}