Commit 8e01dd14 by Francisco Giordano Committed by GitHub

Merge pull request #510 from doraemondrian/master

Use address(0) instead of 0x0
parents 5088c641 ac4a19dd
...@@ -44,7 +44,7 @@ contract Crowdsale { ...@@ -44,7 +44,7 @@ contract Crowdsale {
require(_startTime >= now); require(_startTime >= now);
require(_endTime >= _startTime); require(_endTime >= _startTime);
require(_rate > 0); require(_rate > 0);
require(_wallet != 0x0); require(_wallet != address(0));
token = createTokenContract(); token = createTokenContract();
startTime = _startTime; startTime = _startTime;
...@@ -67,7 +67,7 @@ contract Crowdsale { ...@@ -67,7 +67,7 @@ contract Crowdsale {
// low level token purchase function // low level token purchase function
function buyTokens(address beneficiary) public payable { function buyTokens(address beneficiary) public payable {
require(beneficiary != 0x0); require(beneficiary != address(0));
require(validPurchase()); require(validPurchase());
uint256 weiAmount = msg.value; uint256 weiAmount = msg.value;
......
...@@ -34,6 +34,6 @@ contract Claimable is Ownable { ...@@ -34,6 +34,6 @@ contract Claimable is Ownable {
function claimOwnership() onlyPendingOwner public { function claimOwnership() onlyPendingOwner public {
OwnershipTransferred(owner, pendingOwner); OwnershipTransferred(owner, pendingOwner);
owner = pendingOwner; owner = pendingOwner;
pendingOwner = 0x0; pendingOwner = address(0);
} }
} }
...@@ -35,7 +35,7 @@ contract DelayedClaimable is Claimable { ...@@ -35,7 +35,7 @@ contract DelayedClaimable is Claimable {
require((block.number <= end) && (block.number >= start)); require((block.number <= end) && (block.number >= start));
OwnershipTransferred(owner, pendingOwner); OwnershipTransferred(owner, pendingOwner);
owner = pendingOwner; owner = pendingOwner;
pendingOwner = 0x0; pendingOwner = address(0);
end = 0; end = 0;
} }
......
...@@ -35,7 +35,7 @@ contract MintableToken is StandardToken, Ownable { ...@@ -35,7 +35,7 @@ contract MintableToken is StandardToken, Ownable {
totalSupply = totalSupply.add(_amount); totalSupply = totalSupply.add(_amount);
balances[_to] = balances[_to].add(_amount); balances[_to] = balances[_to].add(_amount);
Mint(_to, _amount); Mint(_to, _amount);
Transfer(0x0, _to, _amount); Transfer(address(0), _to, _amount);
return true; return true;
} }
......
...@@ -41,7 +41,7 @@ contract TokenVesting is Ownable { ...@@ -41,7 +41,7 @@ contract TokenVesting is Ownable {
* @param _revocable whether the vesting is revocable or not * @param _revocable whether the vesting is revocable or not
*/ */
function TokenVesting(address _beneficiary, uint256 _start, uint256 _cliff, uint256 _duration, bool _revocable) { function TokenVesting(address _beneficiary, uint256 _start, uint256 _cliff, uint256 _duration, bool _revocable) {
require(_beneficiary != 0x0); require(_beneficiary != address(0));
require(_cliff <= _duration); require(_cliff <= _duration);
beneficiary = _beneficiary; beneficiary = _beneficiary;
......
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