aboutsummaryrefslogtreecommitdiffstats
path: root/test/compilationTests/corion
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-07-12 07:49:00 +0800
committerchriseth <chris@ethereum.org>2018-07-16 21:33:31 +0800
commitbdac82ecdbb6a4d27e9c5b11ce48d2d653a652e6 (patch)
treedb49e85ba17521aa55af555ab7b064894e587fbb /test/compilationTests/corion
parentaa08460d94f0e3ac8e067f89786175fb5ebba73b (diff)
downloaddexon-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/corion')
-rw-r--r--test/compilationTests/corion/provider.sol2
-rw-r--r--test/compilationTests/corion/schelling.sol2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/compilationTests/corion/provider.sol b/test/compilationTests/corion/provider.sol
index 3327ba8a..7d1e04e3 100644
--- a/test/compilationTests/corion/provider.sol
+++ b/test/compilationTests/corion/provider.sol
@@ -514,7 +514,7 @@ contract provider is module, safeMath, announcementTypes {
} else if ( clients[msg.sender].providerAddress != address(0x00) ) {
clientReward = getClientReward(_limit);
} else {
- throw;
+ revert();
}
if ( clientReward > 0 ) {
require( moduleHandler(moduleHandlerAddress).transfer(address(this), _beneficiary, clientReward, false) );
diff --git a/test/compilationTests/corion/schelling.sol b/test/compilationTests/corion/schelling.sol
index f236d378..3905e300 100644
--- a/test/compilationTests/corion/schelling.sol
+++ b/test/compilationTests/corion/schelling.sol
@@ -389,7 +389,7 @@ contract schelling is module, announcementTypes, schellingVars {
}
delete voter.status;
delete voter.roundID;
- } else { throw; }
+ } else { revert(); }
setVoter(msg.sender, voter);
setFunds(msg.sender, funds);