mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Replace throw with revert() in compilation tests
This commit is contained in:
committed by
chriseth
parent
aa08460d94
commit
bdac82ecdb
@@ -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) );
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user