Replaced Solium in favor of Solhint (#1575)
* Adding solhint, working on style fixes. * Upgraded to solhint 1.5.0. * Removed all references to Solium * Updated mocks to make the pass the new linter rules. * Reformatted the .solhint.json file a bit. * Removed Solium configuration files. * Remove Solium dependency. * Add comment explaing disabled time rule in TokenVesting. * Revert to the old (ugly?) style. * Revert SignatureBouncerMock style. * Fix ERC165InterfacesSupported interface.
This commit is contained in:
@ -20,7 +20,7 @@ contract TokenTimelock {
|
||||
uint256 private _releaseTime;
|
||||
|
||||
constructor (IERC20 token, address beneficiary, uint256 releaseTime) public {
|
||||
// solium-disable-next-line security/no-block-members
|
||||
// solhint-disable-next-line not-rely-on-time
|
||||
require(releaseTime > block.timestamp);
|
||||
_token = token;
|
||||
_beneficiary = beneficiary;
|
||||
@ -52,7 +52,7 @@ contract TokenTimelock {
|
||||
* @notice Transfers tokens held by timelock to beneficiary.
|
||||
*/
|
||||
function release() public {
|
||||
// solium-disable-next-line security/no-block-members
|
||||
// solhint-disable-next-line not-rely-on-time
|
||||
require(block.timestamp >= _releaseTime);
|
||||
|
||||
uint256 amount = _token.balanceOf(address(this));
|
||||
|
||||
Reference in New Issue
Block a user