From 3803986bfdd04e9390135b19f0c1018eb1cd2550 Mon Sep 17 00:00:00 2001 From: Marco Argentieri Date: Thu, 2 Nov 2017 18:03:06 +0100 Subject: [PATCH] fix MockCrowdsale --- dao/contracts/foundation/AgiCrowdsale.sol | 6 +++--- dao/test/helpers/AgiCrowdsaleMock.sol | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dao/contracts/foundation/AgiCrowdsale.sol b/dao/contracts/foundation/AgiCrowdsale.sol index 3d48183..bc7cce6 100644 --- a/dao/contracts/foundation/AgiCrowdsale.sol +++ b/dao/contracts/foundation/AgiCrowdsale.sol @@ -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; @@ -92,7 +92,7 @@ contract AgiCrowdsale is Ownable, ReentrancyGuard { TokenPurchase( msg.sender, beneficiary, - weiAmounts, + weiAmount, tokens ); @@ -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) { diff --git a/dao/test/helpers/AgiCrowdsaleMock.sol b/dao/test/helpers/AgiCrowdsaleMock.sol index 7c15c53..007a853 100644 --- a/dao/test/helpers/AgiCrowdsaleMock.sol +++ b/dao/test/helpers/AgiCrowdsaleMock.sol @@ -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) { }