Update external contracts in compilationTests (to support strict address literals)

This commit is contained in:
Alex Beregszaszi
2018-06-25 16:17:50 +02:00
parent 98c9ca2575
commit 3ee3018bf6
22 changed files with 54 additions and 54 deletions
@@ -50,7 +50,7 @@ contract MultiSigWallet {
}
modifier transactionExists(uint transactionId) {
if (transactions[transactionId].destination == 0)
if (transactions[transactionId].destination == address(0))
throw;
_;
}
@@ -74,7 +74,7 @@ contract MultiSigWallet {
}
modifier notNull(address _address) {
if (_address == 0)
if (_address == address(0))
throw;
_;
}
@@ -107,7 +107,7 @@ contract MultiSigWallet {
validRequirement(_owners.length, _required)
{
for (uint i=0; i<_owners.length; i++) {
if (isOwner[_owners[i]] || _owners[i] == 0)
if (isOwner[_owners[i]] || _owners[i] == address(0))
throw;
isOwner[_owners[i]] = true;
}