Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
openzeppelin-contracts-upgradeable
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
俞永鹏
openzeppelin-contracts-upgradeable
Commits
6bf2ae82
Unverified
Commit
6bf2ae82
authored
Feb 11, 2019
by
Francisco Giordano
Committed by
GitHub
Feb 11, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #46 from ZumZoom/linter
Fix identation and some linter warnings
parents
453e3dd4
644b1216
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
7 additions
and
4 deletions
+7
-4
PostDeliveryCrowdsale.sol
contracts/crowdsale/distribution/PostDeliveryCrowdsale.sol
+0
-1
ForceEther.sol
contracts/mocks/ForceEther.sol
+3
-1
MessageHelper.sol
contracts/mocks/MessageHelper.sol
+1
-1
PausableCrowdsaleImpl.sol
contracts/mocks/PausableCrowdsaleImpl.sol
+0
-0
WhitelistedRoleMock.sol
contracts/mocks/WhitelistedRoleMock.sol
+0
-0
TokenTimelock.sol
contracts/token/ERC20/TokenTimelock.sol
+1
-0
ERC721Metadata.sol
contracts/token/ERC721/ERC721Metadata.sol
+2
-1
No files found.
contracts/crowdsale/distribution/PostDeliveryCrowdsale.sol
View file @
6bf2ae82
...
@@ -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;
}
}
contracts/mocks/ForceEther.sol
View file @
6bf2ae82
...
@@ -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);
...
...
contracts/mocks/MessageHelper.sol
View file @
6bf2ae82
...
@@ -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) {
// sol
ium-disable-next-line security/no
-low-level-calls
// sol
hint-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;
...
...
contracts/mocks/PausableCrowdsaleImpl.sol
View file @
6bf2ae82
contracts/mocks/WhitelistedRoleMock.sol
View file @
6bf2ae82
contracts/token/ERC20/TokenTimelock.sol
View file @
6bf2ae82
...
@@ -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;
...
...
contracts/token/ERC721/ERC721Metadata.sol
View file @
6bf2ae82
...
@@ -38,7 +38,8 @@ contract ERC721Metadata is Initializable, ERC165, ERC721, IERC721Metadata {
...
@@ -38,7 +38,8 @@ contract ERC721Metadata is Initializable, ERC165, ERC721, IERC721Metadata {
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment