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/Wallet.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/Wallet.cpp')
-rw-r--r-- | test/contracts/Wallet.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/contracts/Wallet.cpp b/test/contracts/Wallet.cpp index 1031e8f1..f8ee007d 100644 --- a/test/contracts/Wallet.cpp +++ b/test/contracts/Wallet.cpp @@ -399,7 +399,7 @@ contract Wallet is multisig, multiowned, daylimit { } // determine our operation hash. _r = keccak256(msg.data, block.number); - if (!confirm(_r) && m_txs[_r].to == 0) { + if (!confirm(_r) && m_txs[_r].to == 0x0000000000000000000000000000000000000000) { m_txs[_r].to = _to; m_txs[_r].value = _value; m_txs[_r].data = _data; @@ -410,7 +410,7 @@ contract Wallet is multisig, multiowned, daylimit { // confirm a transaction through just the hash. we use the previous transactions map, m_txs, in order // to determine the body of the transaction from the hash provided. function confirm(bytes32 _h) onlymanyowners(_h) returns (bool) { - if (m_txs[_h].to != 0) { + if (m_txs[_h].to != 0x0000000000000000000000000000000000000000) { m_txs[_h].to.call.value(m_txs[_h].value)(m_txs[_h].data); MultiTransact(msg.sender, _h, m_txs[_h].value, m_txs[_h].to, m_txs[_h].data); delete m_txs[_h]; |