Skip to content

Commit

Permalink
PreICOProxyBuyer: Improved commenting.
Browse files Browse the repository at this point in the history
  • Loading branch information
villesundell committed Nov 2, 2017
1 parent a2f1e30 commit a5d3cb1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions contracts/PreICOProxyBuyer.sol
Expand Up @@ -281,6 +281,7 @@ contract PreICOProxyBuyer is Ownable, Haltable {
}

/// @dev Setting timelock (delay) for claiming
/// @param _timeLock Time after which claiming is possible
function setTimeLock(uint _timeLock) public onlyOwner {
timeLock = _timeLock;
}
Expand Down
4 changes: 2 additions & 2 deletions ico/tests/contracts/test_preico_proxy_buy.py
Expand Up @@ -447,7 +447,7 @@ def test_proxy_buy_presale_pricing(chain, proxy_buyer, tranche_crowdsale, finali
token.call().balanceOf(customer) == 20000 / 0.05

def test_proxy_timelock(chain, web3, customer, customer_2, team_multisig, proxy_buyer, crowdsale, token, unlock_time):
"""Buy proxy as customer."""
"""Try to claim after timeLock has passed."""

assert proxy_buyer.call().getState() == 1
assert proxy_buyer.call().isPresale() == True
Expand Down Expand Up @@ -504,7 +504,7 @@ def test_proxy_timelock(chain, web3, customer, customer_2, team_multisig, proxy_
assert token.call().balanceOf(customer_2) == 36000000/3*2

def test_proxy_timelock_early(chain, web3, customer, customer_2, team_multisig, proxy_buyer, crowdsale, token, unlock_time):
"""Buy proxy as customer."""
"""Try to claim before timeLock has passed."""

assert proxy_buyer.call().getState() == 1
assert proxy_buyer.call().isPresale() == True
Expand Down

0 comments on commit a5d3cb1

Please sign in to comment.