Unverified Commit 6bf2ae82 by Francisco Giordano Committed by GitHub

Merge pull request #46 from ZumZoom/linter

Fix identation and some linter warnings
parents 453e3dd4 644b1216
...@@ -41,6 +41,5 @@ contract PostDeliveryCrowdsale is Initializable, TimedCrowdsale { ...@@ -41,6 +41,5 @@ contract PostDeliveryCrowdsale is Initializable, TimedCrowdsale {
_balances[beneficiary] = _balances[beneficiary].add(tokenAmount); _balances[beneficiary] = _balances[beneficiary].add(tokenAmount);
} }
uint256[50] private ______gap; uint256[50] private ______gap;
} }
...@@ -8,7 +8,9 @@ pragma solidity ^0.5.0; ...@@ -8,7 +8,9 @@ pragma solidity ^0.5.0;
// @author Remco Bloemen <remco@neufund.org> // @author Remco Bloemen <remco@neufund.org>
contract ForceEther { contract ForceEther {
constructor() public payable { } constructor() public payable {
// solhint-disable-previous-line no-empty-blocks
}
function destroyAndSend(address payable recipient) public { function destroyAndSend(address payable recipient) public {
selfdestruct(recipient); selfdestruct(recipient);
......
...@@ -40,7 +40,7 @@ contract MessageHelper { ...@@ -40,7 +40,7 @@ contract MessageHelper {
} }
function call(address _to, bytes memory _data) public returns (bool) { function call(address _to, bytes memory _data) public returns (bool) {
// solium-disable-next-line security/no-low-level-calls // solhint-disable-next-line security/avoid-low-level-calls
(bool success,) = _to.call(_data); (bool success,) = _to.call(_data);
if (success) if (success)
return true; return true;
......
...@@ -5,7 +5,7 @@ import "../crowdsale/validation/PausableCrowdsale.sol"; ...@@ -5,7 +5,7 @@ import "../crowdsale/validation/PausableCrowdsale.sol";
contract PausableCrowdsaleImpl is PausableCrowdsale { contract PausableCrowdsaleImpl is PausableCrowdsale {
constructor (uint256 _rate, address payable _wallet, ERC20 _token) public { constructor (uint256 _rate, address payable _wallet, ERC20 _token) public {
Crowdsale.initialize(_rate, _wallet, _token); Crowdsale.initialize(_rate, _wallet, _token);
PausableCrowdsale.initialize(msg.sender); PausableCrowdsale.initialize(msg.sender);
} }
} }
...@@ -4,7 +4,7 @@ import "../access/roles/WhitelistedRole.sol"; ...@@ -4,7 +4,7 @@ import "../access/roles/WhitelistedRole.sol";
contract WhitelistedRoleMock is WhitelistedRole { contract WhitelistedRoleMock is WhitelistedRole {
constructor() public { constructor() public {
WhitelistedRole.initialize(msg.sender); WhitelistedRole.initialize(msg.sender);
} }
function onlyWhitelistedMock() public view onlyWhitelisted { function onlyWhitelistedMock() public view onlyWhitelisted {
......
...@@ -21,6 +21,7 @@ contract TokenTimelock is Initializable { ...@@ -21,6 +21,7 @@ contract TokenTimelock is Initializable {
uint256 private _releaseTime; uint256 private _releaseTime;
function initialize (IERC20 token, address beneficiary, uint256 releaseTime) public initializer { function initialize (IERC20 token, address beneficiary, uint256 releaseTime) public initializer {
// solhint-disable-next-line not-rely-on-time
require(releaseTime > block.timestamp); require(releaseTime > block.timestamp);
_token = token; _token = token;
_beneficiary = beneficiary; _beneficiary = beneficiary;
......
...@@ -36,9 +36,10 @@ contract ERC721Metadata is Initializable, ERC165, ERC721, IERC721Metadata { ...@@ -36,9 +36,10 @@ contract ERC721Metadata is Initializable, ERC165, ERC721, IERC721Metadata {
_registerInterface(_INTERFACE_ID_ERC721_METADATA); _registerInterface(_INTERFACE_ID_ERC721_METADATA);
} }
function _hasBeenInitialized() internal view returns (bool) { function _hasBeenInitialized() internal view returns (bool) {
return supportsInterface(_INTERFACE_ID_ERC721_METADATA); return supportsInterface(_INTERFACE_ID_ERC721_METADATA);
} }
/** /**
* @dev Gets the token name * @dev Gets the token name
* @return string representing the token name * @return string representing the token name
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment