From bdac82ecdbb6a4d27e9c5b11ce48d2d653a652e6 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Thu, 12 Jul 2018 00:49:00 +0100 Subject: Replace throw with revert() in compilation tests --- test/compilationTests/zeppelin/payment/PullPayment.sol | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/compilationTests/zeppelin/payment') diff --git a/test/compilationTests/zeppelin/payment/PullPayment.sol b/test/compilationTests/zeppelin/payment/PullPayment.sol index 2f3e1b51..bac1d019 100644 --- a/test/compilationTests/zeppelin/payment/PullPayment.sol +++ b/test/compilationTests/zeppelin/payment/PullPayment.sol @@ -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(); } } } -- cgit