From 18984a26ffd7bf8b06418947ac403c4a05607e62 Mon Sep 17 00:00:00 2001 From: perissology Date: Thu, 19 Oct 2017 12:14:31 -0700 Subject: [PATCH] use isProjectCanceled to check for canceled project --- contracts/LiquidPledging.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/LiquidPledging.sol b/contracts/LiquidPledging.sol index d6a2135..dfe923d 100644 --- a/contracts/LiquidPledging.sol +++ b/contracts/LiquidPledging.sol @@ -180,7 +180,7 @@ function donate(uint64 idGiver, uint64 idReceiver) payable { require(n.paymentState == PaymentState.Paying); // Check the project is not canceled in the while. - require(getOldestPledgeNotCanceled(idPledge) == idPledge); + require(!isProjectCanceled(n.owner)); uint64 idNewPledge = findOrCreatePledge( n.owner,