fix identation and some linter warnings
This commit is contained in:
@ -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;
|
|||||||
// @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 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
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";
|
|||||||
|
|
||||||
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";
|
|||||||
|
|
||||||
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 {
|
|||||||
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;
|
||||||
|
|||||||
@ -13,7 +13,7 @@ import "./ERC721Metadata.sol";
|
|||||||
*/
|
*/
|
||||||
contract ERC721Full is Initializable, ERC721, ERC721Enumerable, ERC721Metadata {
|
contract ERC721Full is Initializable, ERC721, ERC721Enumerable, ERC721Metadata {
|
||||||
function initialize(string memory name, string memory symbol) public initializer {
|
function initialize(string memory name, string memory symbol) public initializer {
|
||||||
ERC721Metadata.initialize(name, symbol);
|
ERC721Metadata.initialize(name, symbol);
|
||||||
}
|
}
|
||||||
|
|
||||||
uint256[50] private ______gap;
|
uint256[50] private ______gap;
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user