Replace throw with revert() in compilation tests

This commit is contained in:
Alex Beregszaszi
2018-07-16 15:33:31 +02:00
committed by chriseth
parent aa08460d94
commit bdac82ecdb
23 changed files with 92 additions and 92 deletions
@@ -33,18 +33,18 @@ contract PullPayment {
uint256 payment = payments[payee];
if (payment == 0) {
throw;
revert();
}
if (address(this).balance < payment) {
throw;
revert();
}
totalPayments = totalPayments.sub(payment);
payments[payee] = 0;
if (!payee.send(payment)) {
throw;
revert();
}
}
}