use isProjectCanceled to check for canceled project
This commit is contained in:
parent
66388c4e9e
commit
18984a26ff
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue