Skip to content

Commit

Permalink
fix MockCrowdsale
Browse files Browse the repository at this point in the history
  • Loading branch information
tiero committed Nov 2, 2017
1 parent 9bbe8e0 commit 3803986
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions dao/contracts/foundation/AgiCrowdsale.sol
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ contract AgiCrowdsale is Ownable, ReentrancyGuard {
uint256 public rate;

address public wallet;
RefundVailt public vault;
RefundVault public vault;
StandardToken public token;

uint256 public startTime;
Expand Down Expand Up @@ -92,7 +92,7 @@ contract AgiCrowdsale is Ownable, ReentrancyGuard {
TokenPurchase(
msg.sender,
beneficiary,
weiAmounts,
weiAmount,
tokens
);

Expand Down Expand Up @@ -127,7 +127,7 @@ contract AgiCrowdsale is Ownable, ReentrancyGuard {

//in case of endTime before the reach of the cap, the owner can claim the unsold tokens
function claimUnsold() onlyOwner {
require(_endTime <= getBlockTimestamp());
require(endTime <= getBlockTimestamp());
uint256 unsold = token.balanceOf(this);

if (unsold > 0) {
Expand Down
4 changes: 2 additions & 2 deletions dao/test/helpers/AgiCrowdsaleMock.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ contract AgiCrowdsaleMock is AgiCrowdsale {
return timeStamp;
}

function AgiCrowdsaleMock(address _token, uint256 _startTime, uint256 _endTime, uint256 _rate, uint256 _cap, uint256 _goal, address _wallet)
AgiCrowdsale(_token, _startTime, _endTime, _rate, _cap, _goal, _wallet)
function AgiCrowdsaleMock(address _token, address _wallet, uint256 _startTime, uint256 _endTime, uint256 _rate, uint256 _cap, uint256 _goal)
AgiCrowdsale(_token, _wallet, _startTime, _endTime, _rate, _cap, _goal)
{
}

Expand Down

0 comments on commit 3803986

Please sign in to comment.