diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-07-12 07:49:00 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-07-16 21:33:31 +0800 |
commit | bdac82ecdbb6a4d27e9c5b11ce48d2d653a652e6 (patch) | |
tree | db49e85ba17521aa55af555ab7b064894e587fbb /test/compilationTests/MultiSigWallet/MultiSigWallet.sol | |
parent | aa08460d94f0e3ac8e067f89786175fb5ebba73b (diff) | |
download | dexon-solidity-bdac82ecdbb6a4d27e9c5b11ce48d2d653a652e6.tar.gz dexon-solidity-bdac82ecdbb6a4d27e9c5b11ce48d2d653a652e6.tar.zst dexon-solidity-bdac82ecdbb6a4d27e9c5b11ce48d2d653a652e6.zip |
Replace throw with revert() in compilation tests
Diffstat (limited to 'test/compilationTests/MultiSigWallet/MultiSigWallet.sol')
-rw-r--r-- | test/compilationTests/MultiSigWallet/MultiSigWallet.sol | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/test/compilationTests/MultiSigWallet/MultiSigWallet.sol b/test/compilationTests/MultiSigWallet/MultiSigWallet.sol index 0261e068..35f6208b 100644 --- a/test/compilationTests/MultiSigWallet/MultiSigWallet.sol +++ b/test/compilationTests/MultiSigWallet/MultiSigWallet.sol @@ -33,49 +33,49 @@ contract MultiSigWallet { modifier onlyWallet() { if (msg.sender != address(this)) - throw; + revert(); _; } modifier ownerDoesNotExist(address owner) { if (isOwner[owner]) - throw; + revert(); _; } modifier ownerExists(address owner) { if (!isOwner[owner]) - throw; + revert(); _; } modifier transactionExists(uint transactionId) { if (transactions[transactionId].destination == address(0)) - throw; + revert(); _; } modifier confirmed(uint transactionId, address owner) { if (!confirmations[transactionId][owner]) - throw; + revert(); _; } modifier notConfirmed(uint transactionId, address owner) { if (confirmations[transactionId][owner]) - throw; + revert(); _; } modifier notExecuted(uint transactionId) { if (transactions[transactionId].executed) - throw; + revert(); _; } modifier notNull(address _address) { if (_address == address(0)) - throw; + revert(); _; } @@ -84,7 +84,7 @@ contract MultiSigWallet { || _required > ownerCount || _required == 0 || ownerCount == 0) - throw; + revert(); _; } @@ -109,7 +109,7 @@ contract MultiSigWallet { { for (uint i=0; i<_owners.length; i++) { if (isOwner[_owners[i]] || _owners[i] == address(0)) - throw; + revert(); isOwner[_owners[i]] = true; } owners = _owners; |