diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-06-12 17:05:49 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-06-25 22:17:50 +0800 |
commit | 3ee3018bf60d172270ca94ff416a3081477922d4 (patch) | |
tree | 3b19947caa078a7613abe99a60815709ce4143e2 /test/compilationTests/corion/schelling.sol | |
parent | 98c9ca257568e8f281a5d8857a45ef2c8aef2c77 (diff) | |
download | dexon-solidity-3ee3018bf60d172270ca94ff416a3081477922d4.tar.gz dexon-solidity-3ee3018bf60d172270ca94ff416a3081477922d4.tar.zst dexon-solidity-3ee3018bf60d172270ca94ff416a3081477922d4.zip |
Update external contracts in compilationTests (to support strict address literals)
Diffstat (limited to 'test/compilationTests/corion/schelling.sol')
-rw-r--r-- | test/compilationTests/corion/schelling.sol | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/compilationTests/corion/schelling.sol b/test/compilationTests/corion/schelling.sol index 8f38ec64..51133d73 100644 --- a/test/compilationTests/corion/schelling.sol +++ b/test/compilationTests/corion/schelling.sol @@ -37,7 +37,7 @@ contract schellingDB is safeMath, schellingVars { */ address private owner; function replaceOwner(address newOwner) external returns(bool) { - require( owner == 0x00 || msg.sender == owner ); + require( owner == address(0x00) || msg.sender == owner ); owner = newOwner; return true; } @@ -407,7 +407,7 @@ contract schelling is module, announcementTypes, schellingVars { uint256 funds = getFunds(msg.sender); address _beneficiary = msg.sender; - if (beneficiary != 0x0) { _beneficiary = beneficiary; } + if (beneficiary != address(0x00)) { _beneficiary = beneficiary; } uint256 reward; require( voter.rewards > 0 ); require( voter.status == voterStatus.base ); |