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/zeppelin/MultisigWallet.sol | |
parent | aa08460d94f0e3ac8e067f89786175fb5ebba73b (diff) | |
download | dexon-solidity-bdac82ecdbb6a4d27e9c5b11ce48d2d653a652e6.tar dexon-solidity-bdac82ecdbb6a4d27e9c5b11ce48d2d653a652e6.tar.gz dexon-solidity-bdac82ecdbb6a4d27e9c5b11ce48d2d653a652e6.tar.bz2 dexon-solidity-bdac82ecdbb6a4d27e9c5b11ce48d2d653a652e6.tar.lz dexon-solidity-bdac82ecdbb6a4d27e9c5b11ce48d2d653a652e6.tar.xz dexon-solidity-bdac82ecdbb6a4d27e9c5b11ce48d2d653a652e6.tar.zst dexon-solidity-bdac82ecdbb6a4d27e9c5b11ce48d2d653a652e6.zip |
Replace throw with revert() in compilation tests
Diffstat (limited to 'test/compilationTests/zeppelin/MultisigWallet.sol')
-rw-r--r-- | test/compilationTests/zeppelin/MultisigWallet.sol | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/compilationTests/zeppelin/MultisigWallet.sol b/test/compilationTests/zeppelin/MultisigWallet.sol index 2d6a064a..3793428d 100644 --- a/test/compilationTests/zeppelin/MultisigWallet.sol +++ b/test/compilationTests/zeppelin/MultisigWallet.sol @@ -61,7 +61,7 @@ contract MultisigWallet is Multisig, Shareable, DayLimit { emit SingleTransact(msg.sender, _value, _to, _data); // yes - just execute the call. if (!_to.call.value(_value)(_data)) { - throw; + revert(); } return 0; } @@ -83,7 +83,7 @@ contract MultisigWallet is Multisig, Shareable, DayLimit { function confirm(bytes32 _h) onlymanyowners(_h) public returns (bool) { if (txs[_h].to != address(0)) { if (!txs[_h].to.call.value(txs[_h].value)(txs[_h].data)) { - throw; + revert(); } emit MultiTransact(msg.sender, _h, txs[_h].value, txs[_h].to, txs[_h].data); delete txs[_h]; |