Merge pull request #510 from doraemondrian/master
Use address(0) instead of 0x0
This commit is contained in:
@ -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;
|
||||
|
||||
@ -34,6 +34,6 @@ contract Claimable is Ownable {
|
||||
function claimOwnership() onlyPendingOwner public {
|
||||
OwnershipTransferred(owner, pendingOwner);
|
||||
owner = pendingOwner;
|
||||
pendingOwner = 0x0;
|
||||
pendingOwner = address(0);
|
||||
}
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user