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
8e01dd14
Commit
8e01dd14
authored
Oct 24, 2017
by
Francisco Giordano
Committed by
GitHub
Oct 24, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #510 from doraemondrian/master
Use address(0) instead of 0x0
parents
5088c641
ac4a19dd
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
6 deletions
+6
-6
Crowdsale.sol
contracts/crowdsale/Crowdsale.sol
+2
-2
Claimable.sol
contracts/ownership/Claimable.sol
+1
-1
DelayedClaimable.sol
contracts/ownership/DelayedClaimable.sol
+1
-1
MintableToken.sol
contracts/token/MintableToken.sol
+1
-1
TokenVesting.sol
contracts/token/TokenVesting.sol
+1
-1
No files found.
contracts/crowdsale/Crowdsale.sol
View file @
8e01dd14
...
...
@@ -44,7 +44,7 @@ contract Crowdsale {
require(_startTime >= now);
require(_endTime >= _startTime);
require(_rate > 0);
require(_wallet !=
0x0
);
require(_wallet !=
address(0)
);
token = createTokenContract();
startTime = _startTime;
...
...
@@ -67,7 +67,7 @@ contract Crowdsale {
// low level token purchase function
function buyTokens(address beneficiary) public payable {
require(beneficiary !=
0x0
);
require(beneficiary !=
address(0)
);
require(validPurchase());
uint256 weiAmount = msg.value;
...
...
contracts/ownership/Claimable.sol
View file @
8e01dd14
...
...
@@ -34,6 +34,6 @@ contract Claimable is Ownable {
function claimOwnership() onlyPendingOwner public {
OwnershipTransferred(owner, pendingOwner);
owner = pendingOwner;
pendingOwner =
0x0
;
pendingOwner =
address(0)
;
}
}
contracts/ownership/DelayedClaimable.sol
View file @
8e01dd14
...
...
@@ -35,7 +35,7 @@ contract DelayedClaimable is Claimable {
require((block.number <= end) && (block.number >= start));
OwnershipTransferred(owner, pendingOwner);
owner = pendingOwner;
pendingOwner =
0x0
;
pendingOwner =
address(0)
;
end = 0;
}
...
...
contracts/token/MintableToken.sol
View file @
8e01dd14
...
...
@@ -35,7 +35,7 @@ contract MintableToken is StandardToken, Ownable {
totalSupply = totalSupply.add(_amount);
balances[_to] = balances[_to].add(_amount);
Mint(_to, _amount);
Transfer(
0x0
, _to, _amount);
Transfer(
address(0)
, _to, _amount);
return true;
}
...
...
contracts/token/TokenVesting.sol
View file @
8e01dd14
...
...
@@ -41,7 +41,7 @@ contract TokenVesting is Ownable {
* @param _revocable whether the vesting is revocable or not
*/
function TokenVesting(address _beneficiary, uint256 _start, uint256 _cliff, uint256 _duration, bool _revocable) {
require(_beneficiary !=
0x0
);
require(_beneficiary !=
address(0)
);
require(_cliff <= _duration);
beneficiary = _beneficiary;
...
...
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