diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-06-25 22:54:50 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-25 22:54:50 +0800 |
commit | 0ac46090971aab21120875e0e55317e4bd2b397e (patch) | |
tree | a027ddad46f3c20ef7d3b013b230083895c81db5 /test/contracts/AuctionRegistrar.cpp | |
parent | b7003505c46942ca2ee4e5317d14f421d5b9bc6d (diff) | |
parent | 6d9a091a8e0c7e5a958ff910c9f8dc828a39e0e4 (diff) | |
download | dexon-solidity-0ac46090971aab21120875e0e55317e4bd2b397e.tar dexon-solidity-0ac46090971aab21120875e0e55317e4bd2b397e.tar.gz dexon-solidity-0ac46090971aab21120875e0e55317e4bd2b397e.tar.bz2 dexon-solidity-0ac46090971aab21120875e0e55317e4bd2b397e.tar.lz dexon-solidity-0ac46090971aab21120875e0e55317e4bd2b397e.tar.xz dexon-solidity-0ac46090971aab21120875e0e55317e4bd2b397e.tar.zst dexon-solidity-0ac46090971aab21120875e0e55317e4bd2b397e.zip |
Merge pull request #3534 from meowingtwurtle/strictAddresses
[BREAKING] Strict checking of address literals
Diffstat (limited to 'test/contracts/AuctionRegistrar.cpp')
-rw-r--r-- | test/contracts/AuctionRegistrar.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/contracts/AuctionRegistrar.cpp b/test/contracts/AuctionRegistrar.cpp index 33b392d4..ef84efed 100644 --- a/test/contracts/AuctionRegistrar.cpp +++ b/test/contracts/AuctionRegistrar.cpp @@ -123,7 +123,7 @@ contract GlobalRegistrar is Registrar, AuctionSystem { record.renewalDate = now + c_renewalInterval; record.owner = auction.highestBidder; Changed(_name); - if (previousOwner != 0) { + if (previousOwner != 0x0000000000000000000000000000000000000000) { if (!record.owner.send(auction.sumOfBids - auction.highestBid / 100)) throw; } else { @@ -143,7 +143,7 @@ contract GlobalRegistrar is Registrar, AuctionSystem { bid(_name, msg.sender, msg.value); } else { Record record = m_toRecord[_name]; - if (record.owner != 0) + if (record.owner != 0x0000000000000000000000000000000000000000) throw; m_toRecord[_name].owner = msg.sender; Changed(_name); |