Skip to content

Commit

Permalink
Merge pull request #28 from bitclave/fix/remove-unused-param
Browse files Browse the repository at this point in the history
Remove unused parameter from BonusCrowdsale
  • Loading branch information
markshw committed Nov 4, 2017
2 parents 9ffc5e9 + b879942 commit 0ed856c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions contracts/BonusCrowdsale.sol
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,13 @@ contract BonusCrowdsale is Crowdsale, Ownable {

// Members
uint public tokenPriceInCents;
uint public tokenDecimals;

/**
* @dev Contructor
* @param _tokenPriceInCents token price in USD cents. The price is fixed
* @param _tokenDecimals number of digits after decimal point for CAT token
*/
function BonusCrowdsale(uint256 _tokenPriceInCents, uint256 _tokenDecimals) public {
function BonusCrowdsale(uint256 _tokenPriceInCents) public {
tokenPriceInCents = _tokenPriceInCents;
tokenDecimals = _tokenDecimals;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion contracts/CATCrowdsale.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import "./CAToken.sol";
* Based on references from OpenZeppelin: https://github.com/OpenZeppelin/zeppelin-solidity
*
*/
contract CATCrowdsale is FinalizableCrowdsale, TokensCappedCrowdsale(CATCrowdsale.CAP), PausableCrowdsale(true), BonusCrowdsale(CATCrowdsale.TOKEN_USDCENT_PRICE, CATCrowdsale.DECIMALS) {
contract CATCrowdsale is FinalizableCrowdsale, TokensCappedCrowdsale(CATCrowdsale.CAP), PausableCrowdsale(true), BonusCrowdsale(CATCrowdsale.TOKEN_USDCENT_PRICE) {

// Constants
uint256 public constant DECIMALS = 18;
Expand Down
2 changes: 1 addition & 1 deletion test/impl/BonusCrowdsaleImpl.sol
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ contract BonusCrowdsaleImpl is Crowdsale, BonusCrowdsale {
address _wallet
)
Crowdsale(_startTime, _endTime, _rate, _wallet)
BonusCrowdsale(10, 18) // $0.10, 18 decimals
BonusCrowdsale(10) // $0.10
{
}

Expand Down

0 comments on commit 0ed856c

Please sign in to comment.