diff options
author | Jason Cobb <jason.e.cobb@gmail.com> | 2018-05-31 05:02:47 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-06-25 22:17:50 +0800 |
commit | 98c9ca257568e8f281a5d8857a45ef2c8aef2c77 (patch) | |
tree | 728ebe462c3ec65a90e44d7c3d6558a03418de6b /test/contracts/Wallet.cpp | |
parent | 48b003d4d4e4ebddf8922fb06a47c1634203d0bc (diff) | |
download | dexon-solidity-98c9ca257568e8f281a5d8857a45ef2c8aef2c77.tar dexon-solidity-98c9ca257568e8f281a5d8857a45ef2c8aef2c77.tar.gz dexon-solidity-98c9ca257568e8f281a5d8857a45ef2c8aef2c77.tar.bz2 dexon-solidity-98c9ca257568e8f281a5d8857a45ef2c8aef2c77.tar.lz dexon-solidity-98c9ca257568e8f281a5d8857a45ef2c8aef2c77.tar.xz dexon-solidity-98c9ca257568e8f281a5d8857a45ef2c8aef2c77.tar.zst dexon-solidity-98c9ca257568e8f281a5d8857a45ef2c8aef2c77.zip |
Update tests for strict 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]; |